0
0
Kubernetesdevops~5 mins

Endpoints and endpoint slices in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Kubernetes Endpoint?
An Endpoint in Kubernetes is a resource that lists the IP addresses and ports of the pods that are matched by a Service selector. It helps route traffic to the right pods.
Click to reveal answer
intermediate
What problem do Endpoint Slices solve compared to Endpoints?
Endpoint Slices improve scalability and performance by splitting large Endpoint lists into smaller chunks. This reduces load on the API server and improves network efficiency.
Click to reveal answer
intermediate
How does Kubernetes use Endpoint Slices internally?
Kubernetes automatically creates Endpoint Slices for Services. Each slice contains a subset of the pods' IPs and ports, allowing clients to discover endpoints efficiently.
Click to reveal answer
beginner
What is the main difference between Endpoints and Endpoint Slices in Kubernetes?
Endpoints store all pod IPs in one resource, while Endpoint Slices split them into multiple smaller resources. Endpoint Slices are the newer, more scalable way to track pod endpoints.
Click to reveal answer
beginner
How can you view Endpoint Slices for a Service in Kubernetes?
You can run the command kubectl get endpointslices -n <namespace> to list Endpoint Slices. They are labeled with the Service name for easy identification.
Click to reveal answer
What does a Kubernetes Endpoint resource represent?
AA container image registry
BA list of pod IPs and ports matched by a Service
CA configuration file for pods
DA network policy
Why were Endpoint Slices introduced in Kubernetes?
ATo improve scalability and reduce API server load
BTo replace pods
CTo store container logs
DTo manage persistent storage
Which command lists Endpoint Slices in a Kubernetes namespace?
Akubectl get endpointslices -n <namespace>
Bkubectl get pods -n <namespace>
Ckubectl describe service <name>
Dkubectl get nodes
How do Endpoint Slices improve network efficiency?
ABy encrypting network traffic
BBy compressing pod logs
CBy grouping endpoints into smaller chunks
DBy caching container images
What label helps identify Endpoint Slices belonging to a Service?
Akubernetes.io/hostname
Bapp.kubernetes.io/version
Cnode-role.kubernetes.io/master
Dkubernetes.io/service-name
Explain what Kubernetes Endpoints and Endpoint Slices are and why Endpoint Slices are preferred in large clusters.
Think about how Kubernetes tracks pods for Services and how it handles many pods.
You got /4 concepts.
    Describe how you would check the Endpoint Slices for a Service in your Kubernetes cluster.
    Use kubectl get endpointslices and check labels.
    You got /4 concepts.