I've setup kubernetes cluster in a ubuntu server using kubeadm. I've created a deployment and exposed the deployment using NodePort service. How to I get to access the API(using the IP of the Ubuntu host server)which is running the pod ?
I've setup kubernetes cluster in a ubuntu server using kubeadm. I've created a deployment and exposed the deployment using NodePort service. How to I get to access the API(using the IP of the Ubuntu host server)which is running the pod ?
You can use the IP of your ubuntu machine and as since your service is exposed a Node port so you can do something like
192.168.0.1:31842
replace the IP with your ubuntu host machine IP.
Read more at : https://kubernetes.io/docs/concepts/services-networking/service/#nodeport