Endpoint Conditions — detailed status of each endpoint.
1apiVersion: discovery.k8s.io/v12kind: EndpointSlice3metadata:4 name: myapp-abc125 namespace: production6 labels:7 kubernetes.io/service-name: myapp8addressType: IPv49ports:10- name: http11 port: 8012 protocol: TCP13endpoints:14- addresses:15 - "10.0.1.5"16 conditions:17 ready: true18 serving: true19 terminating: false20 nodeName: node-121 zone: us-west-2a22 deprecatedTopology:23 topology.kubernetes.io/zone: us-west-2a24 hints:25 forZones:26 - name: us-west-2a27- addresses:28 - "10.0.2.8"29 conditions:30 ready: false31 serving: false32 terminating: true33 nodeName: node-234 zone: us-west-2b35 conditions:36 ready: true37 serving: true38 terminating: false
1# Check endpoint conditions2kubectl get endpointslice myapp-abc12 -o yaml | grep -A 20 endpoints34# Check service readiness5kubectl get endpoints myapp -o jsonpath='{.subsets[*].conditions[*]}' | jq67# Verify endpoint health8kubectl get endpoints myapp -o wide910# Check terminating endpoints11kubectl get endpointslice -l kubernetes.io/service-name=myapp -o yaml | grep terminating1213# Verify traffic routing14kubectl exec -it my-pod -- curl http://myapp.production.svc.cluster.local
Conditions:
Behavior: