Hi,
I have this sample kubectl output that I’m trying to understand:
$ minikube kubectl -- describe service kubia
Name: kubia
Namespace: default
Labels: k8s-app=kubia
Annotations: description: Test deployment
Selector: k8s-app=kubia
Type: LoadBalancer
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.110.71.234
IPs: 10.110.71.234
Port: tcp-8080-8080-jh4nc 8080/TCP
TargetPort: 8080/TCP
NodePort: tcp-8080-8080-jh4nc 31987/TCP
Endpoints: 172.17.0.6:8080,172.17.0.7:8080,172.17.0.8:8080
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
What’s Port
and NodePort
telling me? My interpretation for each is:
Port: You’re using one port 8080/TCP and it has the name “tcp-8080-8080-jh4nc”
NodePort: You’re using two ports one with the name “tcp-8080-8080-jh4nc” and the other is 31987/TCP.
Am I reading that right?
Thanks in advance,
Warren.