Welcome to the new Linux Foundation Forum!

Lab 3.3 Cluster IP access

kubectl get svc nginx
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx ClusterIP 10.103.189.38 80/TCP 8m
curl 10.103.189.38:80

Using the cluster ip as above, unable to access the curl from master node, but I can access from worker node.
Is there anything I am missing here ? Thanks.

Comments

  • serewiczserewicz Posts: 393

    Hello,

    My first thought is there may be some firewall blocking access. Did you have a rule to allow all traffic?

    What are you using to run the labs?

    Does the command time out or other error?

    Please make sure all the pods are running with kubectl get pod --all-namespaces Are there any pods or containers not running?

    Regards,

  • Hi,
    Are you still working on GCP? Do you have a firewall rule to allow all traffic (all ports, all sources, all protocols)?
    If on AWS, you would need a similar firewal rule.
    This may be required to be able to complete this lab and subsequent labs as well.
    Regards,
    -Chris

  • Thank you.
    Added below and it starts working. Thanks.

    Name Type Targets Filters Protocols / ports Action Priority Network
    allowall Ingress Apply to all IP ranges: 0.0.0.0/0 all Allow 1000 default

Sign In or Register to comment.