When I look in kubernetes.io for “Endpoints” or “kind: Endpoints”, the only results I get are about services.
What I want is to see an example yaml for kind Endpoints, what shall I search for in order to find it?
It’s probably not a question for this forum, but I do wonder why there’s no documentation on kubernetes.io specifically for Endpoints kind as the resource does exist in k8s.
To work around I did:
k get ep kubernetes -n default -o yaml > ep.yaml
, changed the relevant parts, and applied it.
It might be because EndpointSlices are in the process of replacing Endponts, because EndpointSlices will scale better. I’ve done your “copy-an-existing-endpoint” hack for the same reason, because it’s a very good hack