External ip for kubernetes shows <nodes> in minikube

I'm new to Kubernetes, and recently I published a service using miniKube using the NodePort type. I want to check the operation of my application, but I do not see the external ip except the port. Here is my conclusion:

 $kubectl get service NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes 10.0.0.1 <none> 443/TCP 1h kubernetes-bootcamp 10.0.0.253 <nodes> 8080:31180/TCP 20m $kubectl describe services/kubernetes-bootcamp Name: kubernetes-bootcamp Namespace: default Labels: run=kubernetes-bootcamp Annotations: <none> Selector: run=kubernetes-bootcamp Type: NodePort IP: 10.0.0.253 Port: <unset> 8080/TCP NodePort: <unset> 31180/TCP Endpoints: 172.17.0.2:8080 Session Affinity: None Events: <none> 

What is External IP in this case, so that I can use curl to output the output of my application, I followed the tutorial while working on my laptop: https://kubernetes.io/docs/tutorials/kubernetes-basics/expose-interactive/ .

PS: What does this <nodes> mean in the output of the get service command in the External-IP section?

+5
source share
1 answer

When you use minikube , the minikube ip command will return the IP address you are looking for.

If you are not using minikube , kubectl get nodes -o yaml will show you, among other data, the IP address of the node.

+9
source

Source: https://habr.com/ru/post/1268097/


All Articles