Skip to content

Port is variable in Chapter 4 - Building K8s clusters with Ansible #42

Closed
@benheu

Description

@benheu

Not sure where is the port defined for the hello-kubernetes page service but in my case it's a different one than the one in the book (port 30297 instead of 30606):

This time it works! With the two networking adjustments, we’ve fixed our Kuber-
netes cluster. If you open a browser window, you should even be able to see the
hello-kubernetes page by accessing the NodePort on any of the three servers, e.g.
http://192.168.7.3:30606 .

Maybe you can add a final task at the end of test-deployment.yml to avoid confusion :

- name: Print out kubernetes-hello page url
   debug:
     msg: "http://{{ ansible_host }}:{{ port }}/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions