An endpoint is a resource that gets IP addresses of one or more pods dynamically assigned to it, along with a port. An endpoint can be viewed using
kubectl get endpoints.
An endpoint resource is referenced by a kubernetes service, so that the service has a record of the internal IPs of pods in order to be able to communicate with them.
$ kubectl get endpoints
NAME ENDPOINTS AGE
kubernetes 192.168.64.13:8443 10d
Similar kubectl commands associated with endpoints:
kubectl describe pods
- and observe the IP addresses of your pods
kubectl get ep
- and observe the IP addresses assigned to your endpoint
kubectl describe service myServiceName
- and observe the Endpoints associated with your service.
Refer to the link for more information on kubectl commands.