Manas Sahoo:
Is endpoint Port number is targetPort ?
Fernando Jimenez:
Yes, it is.
kubectl expose pod tester --name=my --port 80 --target-port 8888
service/my exposed
~$ kubectl describe svc my
Name: my
Namespace: default
Labels: run=tester
Annotations: <none>
Selector: run=tester
Type: ClusterIP
IP Families: <none>
IP: 10.96.147.102
IPs: 10.96.147.102
Port: <unset> 80/TCP
TargetPort: 8888/TCP
Endpoints: 192.168.19.3:8888
Session Affinity: None
Events: <none>
Manas Sahoo:
ok thanks Fernando