Which statement correctly describes the difference between Kubernetes Endpoints and EndpointSlices?
Think about how Kubernetes manages large numbers of pod IPs for a service.
Endpoints collect all pod IPs in one object, which can become large and inefficient. EndpointSlices split these IPs into smaller objects to improve scalability and performance.
What is the output of the following command if a service named webapp has 3 pods running?
kubectl get endpointslice -l kubernetes.io/service-name=webapp
EndpointSlices group pod IPs but do not duplicate the same slice multiple times.
Each EndpointSlice object represents a subset of pods for the service. With 3 pods, you typically see multiple EndpointSlices each listing some pods, but here the example shows separate slices for each pod IP.
You want to enable EndpointSlice support in your Kubernetes cluster. Which configuration snippet correctly enables the EndpointSlice controller in the kube-controller-manager manifest?
Look for the standard way Kubernetes enables features via feature gates.
Kubernetes uses feature gates to enable or disable features. The correct flag is --feature-gates=EndpointSlice=true to enable EndpointSlice support.
You notice that your service has Endpoints but no EndpointSlices. Which is the most likely cause?
Think about what component manages EndpointSlices.
EndpointSlices are created and managed by the EndpointSlice controller. If it is disabled or not running, EndpointSlices won't be created even if Endpoints exist.
What is the correct order of steps to migrate a Kubernetes cluster from using Endpoints to EndpointSlices for service discovery?
Think about enabling features first, then verifying, then updating services, then monitoring.
The migration starts by enabling the feature gate, then ensuring the controller runs, updating services if necessary, and finally monitoring EndpointSlices and phasing out Endpoints.