Lab 3.3 - Unable to access from outside the cluster using External IP
➤ ssh -i ./gce_instance_private.ppk [email protected]
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.13.0-1011-gcp x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
14 packages can be updated.
0 updates are security updates.
Last login: Tue Mar 20 14:42:18 2018
[email protected]:~$ kubectl get po
NAME READY STATUS RESTARTS AGE
nginx-7587c6fdb6-82gwr 1/1 Running 2 12h
nginx-7587c6fdb6-j9z56 1/1 Running 2 12h
nginx-7587c6fdb6-pssrn 1/1 Running 2 12h
[email protected]:~$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 21d
nginx LoadBalancer 10.97.72.142 <pending> 80:30254/TCP 1h
[email protected]:~$
Hi, I'm not able to get the Welcome page for nginx using 35.184.142.84:30254.
Am I missing something when I created the VM in Google Cloud?
Regards,
Ram
Comments
Hi Ram,
There is a post in the forum about the same problem you are experiencing, and a few helpful tips on how to go about resolving the external access issue on GCE.
https://www.linux.com/forums/lfs258-class-forum/problem-exercise-33-access-outside-cluster
I hope it will help. Good luck!
-Chris
Thanks Chris! I'm now able to access the Welcome to nginx page using External IP and port 30254.
I had to create a new Ingress allow-all firewall rule from GCP / VPC Network / Firewall Rules.
Regards,
Ram