I have a service exposed of type=LoadBalancer and when I do a
kubectl describe services servicename
,
I get this output :
Name
Port unset means: You didn't specify a name in service creation.
Service Yaml excerpt (note name: grpc
):
spec:
ports:
- port: 26257
targetPort: 26257
name: grpc
type: NodePort
kubectl describe services servicename
output excerpt:
Type: NodePort
IP: 10.101.87.248
Port: grpc 26257/TCP
NodePort: grpc 31045/TCP
Endpoints: 10.20.12.71:26257,10.20.12.73:26257,10.20.8.81:26257
Port is definition of container ports that service will send the traffic on (Actual Endpoint).