Read EndpointSlices and their conditions

  • 12 min
  • 6 steps
  • Networking

Steps

0 of 6 done

Find a pod that a Service skips, wire a Service with no selector to an outside address, and watch an endpoint terminate.

  1. Step 1 of 6

    Four pods carry the label app=catalog. List the EndpointSlices that belong to the catalog Service and count the addresses they hold.

    Checked against what your commands print.

  2. Step 2, not started: The table lists every address in the slice, whether or not it receives traffic. Print the full slice, find the endpoint that kube-proxy skips, and read the condition that says so.

  3. Step 3, not started: Read the same Service through the deprecated v1 Endpoints API, and note what the API server says about it.

  4. Step 4, not started: The ledger Service has no selector, so nothing creates slices for it. A file in the working directory describes its backend outside the cluster. Apply it, then make the ledger Service pick it up.

  5. Step 5, not started: Delete one queue pod without waiting for it to finish, then read every endpoint's conditions in the queue slice while that pod shuts down.

  6. Step 6, not started: Find out which mode kube-proxy uses to program Service rules on the kx nodes.

Lab terminal

Cluster time 50 seconds
kind cluster kx, Kubernetes 1.37.
Each step is checked as you work.
​
Tab completes. Up and Down recall.
Type help for more.
Terminal keys

Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.