This section gives you the highest return per study hour in the whole curriculum. Incident tasks are where exam minutes evaporate, and make break exists because troubleshooting speed comes from live reps, not reading. The framework fits on half a page; the rest is muscle memory.
make core obs secOrientation
Under a ticking clock, the gap between a 5-minute fix and a 20-minute spiral isn't raw Kubernetes trivia: it's following a calm, repeatable method instead of guessing. Internalize the four steps below, then drill them with make break until they run on autopilot.
The method
- Scope the blast radius first. Find out what's broken and what's still healthy:
kubectl get pods -A | grep -v Running,make status, top-level dashboards. One namespace or the whole cluster? Workloads or control plane? Bounding the problem early keeps you from debugging two layers away from the real cause. - Check the timeline second. Ask what just changed:
kubectl get events -A --sort-by=.lastTimestamp | tail -30, recent Argo CD syncs,helm list -A, andkubectl rollout history. Most real incidents trace straight back to a recent change. - Descend one layer at a time. Walk cleanly through
describe→ events → logs → previous logs (--previousfor crash loops) →exec/debug. Resist jumping straight to guesses; skipping steps is where rabbit holes start. - Fix the cause, then prove recovery with the exact same check that failed. If you caught the bug via a failing
curl, the incident isn't over until thatcurlreturns 200; never stop at "the pod says Running."
| Symptom | Layer | First command |
|---|---|---|
| Pending | scheduling: requests, taints, PVC, quota, affinity | kubectl describe pod (events at the bottom) |
| ImagePullBackOff / ErrImagePull | registry, tag, pull Secret, network | kubectl describe pod |
| CrashLoopBackOff | the application itself | kubectl logs --previous |
| OOMKilled | memory limit (1.2) | …state.terminated.reason / lastState |
| CreateContainerConfigError | missing ConfigMap, Secret, or key | kubectl describe pod |
| Running but broken | NetworkPolicy, DNS, app config, RBAC | Hubble, auth can-i, app logs |
| Terminating forever | stuck finalizer or dead controller (3.3) | kubectl get -o yaml | grep finalizers |
| Forbidden in a controller log | RBAC, not the workload | kubectl auth can-i --as=system:serviceaccount:… |
| Everything fails admission | webhook backend is down (5.2) | kubectl get validatingwebhookconfigurations |
"Running but broken" is the sneakiest row on the board: that's where kubectl get pods stops helping and network, DNS, and RBAC tools take over.
Node-level moves
When a node itself is unhealthy: kubectl cordon <node> blocks new pods from landing there, kubectl drain <node> --ignore-daemonsets --delete-emptydir-data evicts running workloads (honoring PDBs; remember section 1.2 if it hangs!), and kubectl uncordon puts it back in rotation. Draining is also the cleanest way to verify whether your workloads genuinely tolerate losing a node.
Two debugging lifelines people forget
kubectl debug -it <pod> --image=busybox:1.37 --target=<container> # ephemeral container into a distroless pod
kubectl debug node/<node> -it --image=busybox:1.37 # a node shell without SSHoutputcaptured 2026-08-26
$ kubectl -n flux-demo debug -it podinfo-8d8f7547d-tgmmb --image=busybox:1.37 --target=podinfo -- ps # ephemeral container into a distroless pod
Targeting container "podinfo". If you don't see processes from this container it may be because the container runtime doesn't support this feature.
Defaulting debug container name to debugger-jt4fk.
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
PID USER TIME COMMAND
1 100 0:00 ./podinfo --port=9898 --prefix=/ --cert-path=/data/cert --port-metrics=9797 --grpc-port=9999 --grpc-service-name=podinfo --level=info --random-delay=false --random-error=false
8698 root 0:00 ps
$ kubectl debug node/cnpe-worker -it --image=busybox:1.37 -- chroot /host sh -c 'hostname && uptime' # a node shell without SSH
Creating debugging pod node-debugger-cnpe-worker-ztz6r with container debugger on node cnpe-worker.
cnpe-worker
03:32:46 up 4 days, 7:22, 0 users, load average: 3.45, 3.65, 7.56Both work right inside the exam terminal. Use the first when a distroless image has no shell, and the second when you need to inspect a node with no SSH access.
Our lab sets a 7-minute target on workload breaks (10 minutes on platform-tool breaks) to mirror exam pacing. If you hit minute 4 without a hypothesis that matches the evidence, step back to Step 1 and widen your view instead of tunnel-visioning deeper. Always write your diagnosis down before touching anything, because putting it in writing keeps you honest.
The extended signal map
Two quick-reference tables fill out the rest of the picture: exact pod failure reasons and exit codes, plus cluster-level outages that often disguise themselves as app problems.
| What you see | Means | Confirm with |
|---|---|---|
Pending, event 0/3 nodes are available: 3 Insufficient cpu | requests exceed free allocatable capacity | kubectl describe node Allocated resources; trim requests or add capacity |
| ... had untolerated taint {...} | node taint without matching toleration | compare node taints vs. pod tolerations |
| ... didn't match Pod's node affinity/selector | unsatisfiable nodeSelector or affinity | check node labels |
| pod has unbound immediate PersistentVolumeClaims | PVC stuck Pending (missing StorageClass, no capacity, unsupported access mode) | kubectl describe pvc events |
| exceeded quota: ... requested: ..., used: ..., limited: ... | ResourceQuota hit; Deployment looks fine while ReplicaSet logs the block | kubectl describe quota -n ns; kubectl describe rs |
ImagePullBackOff with unauthorized / manifest unknown / no such host | pull Secret, bad tag, registry DNS, or egress | exact error in describe pod; imagePullSecrets on pod or SA |
| CreateContainerConfigError | referenced ConfigMap, Secret, or key doesn't exist | pod event names the missing resource |
| CreateContainerError | runtime rejected the spec (bad entrypoint or mount) | pod event; node containerd logs |
ContainerCreating for minutes, event failed to setup network for sandbox / FailedMount / Multi-Attach error | CNI down, or RWO volume still attached to an old node | CNI DaemonSet pods; kubectl get volumeattachments |
| CrashLoopBackOff | container exits repeatedly (backoff doubles up to 5m) | kubectl logs --previous + exit code below |
| OOMKilled | hit memory limit; check lastState.terminated | compare container_memory_working_set_bytes vs. limit |
| Evicted | node disk or memory pressure | eviction event message + node conditions |
Terminating forever | stuck finalizer or hung preStop hook | metadata.finalizers; kubectl delete --grace-period=0 --force only as a last resort |
Decode exit codes from lastState.terminated.exitCode at a glance: 0 clean exit (fine for a Job, wrong for a long-running server), 1 application error (read the logs), 2 shell misuse, 126 non-executable command, 127 command not found (wrong command or image), 137 SIGKILL (OOM if reason says OOMKilled, otherwise killed past grace period), 139 segfault, and 143 SIGTERM (graceful shutdown; if it loops on a clock, a failing liveness probe is killing a healthy pod).
Cluster-level failure scenarios
| Scenario | Tells | Lever |
|---|---|---|
node NotReady | Kubelet stopped posting node status; pods flip to Unknown and get evicted after ~5m | kubectl debug node/<n> -it --image=busybox:1.37 -- chroot /host journalctl -u kubelet -n 50 (and -u containerd); disk pressure and expired certs are the top culprits |
| DNS dead | pods Running, apps log no such host, nslookup kubernetes.default fails | inspect CoreDNS pods and ConfigMap, or a NetworkPolicy blocking UDP/TCP 53 egress to kube-system |
| expired certificates | x509: certificate has expired or is not yet valid, or stale webhook caBundle | kubeadm certs check-expiration and kubeadm certs renew; cert-manager for webhooks |
| etcd full | every write fails with etcdserver: mvcc: database space exceeded while reads keep working | etcdctl alarm list → compact → defrag → alarm disarm; bump --quota-backend-bytes and hunt down what filled it |
| admission webhook down | writes time out with failed calling webhook ... context deadline exceeded while reads work | fix the webhook Deployment; in an emergency, scope or delete the webhook configuration (5.2) |
| API server sluggish | high apiserver_request_duration_seconds p99; Throttling request took in client logs | find runaway controllers via apiserver_request_total by user agent, or a slow webhook stalling every write |
| namespace-wide pull auth failure | every new pod hits ImagePullBackOff with 401 Unauthorized | expired pull Secret or ServiceAccount missing imagePullSecrets |
| platform controller failure | Argo CD ComparisonError, Flux Ready=False, Tekton CouldntGetTask, Crossplane Synced=False | each controller's status condition pinpoints the exact layer |
Whenever a task says "the cluster is broken," run four commands immediately: kubectl get nodes, kubectl get pods -A | grep -v Running, kubectl get events -A --sort-by=.lastTimestamp | tail -30, and kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations. Nine times out of ten, the root cause jumps straight off the screen.
The debugging toolbox and rollback commands
kubectl debug flags to keep handy
kubectl debug -it pod/x --image=busybox --target=appattaches an ephemeral container sharingapp's process namespace (note: ephemeral containers can't be removed individually; they live until the pod is deleted).--copy-to=x-debug --share-processes --set-image=app=busyboxclones a crashing pod with a swapped image or entrypoint (pair with--container app -- sh) when the original dies too fast to attach.kubectl debug node/n -it --image=busyboxdrops you onto the node with its root filesystem mounted at/host. Profiles control privilege:general(default, unprivileged),baseline/restricted(PSS-friendly),netadmin(NET_ADMIN+NET_RAWfortcpdumpandip), andsysadmin(full root forchroot /host). Remember to delete thenode-debugger-*pod afterward.- Check API server internals with
kubectl get --raw /readyz?verboseand/livez?verbose(lists etcd, informers, and webhooks individually;kubectl get componentstatuseshas been deprecated since 1.19).
Fast rollback commands, layer by layer
| Layer | Restore service | Watch out for |
|---|---|---|
| Deployment | kubectl rollout undo deploy/x [--to-revision=N]; kubectl rollout history | GitOps will roll it right back forward on the next sync unless you suspend or revert Git |
| Argo CD | argocd app rollback x <id> (after disabling auto-sync via argocd app set x --sync-policy none) | Argo CD blocks rollback while auto-sync is on; revert the Git commit for the durable fix |
| Flux | flux suspend kustomization x, undo or revert Git, then flux resume | suspended objects show suspended="true"; forgetting to resume creates tomorrow's outage |
| Helm | helm rollback x <revision> | only works when Helm owns the release directly (not Argo-rendered charts) |
| Progressive delivery | kubectl argo rollouts abort x then undo; Flagger rolls back automatically on failed analysis | an aborted Rollout stays Degraded until promoted or undone |
| Policy | flip validationActions to Audit or enforcementAction to warn, or add a PolicyException | deleting a webhook configuration is emergency-only and must be restored afterward |
| Crossplane / kro | compositionUpdatePolicy: Manual + older compositionRevisionRef; pause with crossplane.io/paused: "true" or kro.run/reconcile: suspended | pausing freezes drift correction too, so always log it in the postmortem |
| Node | kubectl cordon, drain --ignore-daemonsets --delete-emptydir-data, uncordon | drains honor PDBs and hang when disruptionsAllowed is 0 |
Vocabulary and incident discipline
Keep the metrics straight: MTTD (detect: alert fired minus impact start), MTTA (acknowledge), and MTTR (restore), alongside DORA's "failed deployment recovery time" from section 4.5. A strong on-call setup pairs one clear severity taxonomy with linked runbooks (symptom, top causes, exact diagnostic commands, rollback, escalation path), a dedicated incident channel, and a quick blameless postmortem producing concrete action items with owners. Finally, separate remediation (restoring service fast: rollback, scale, fail over, pause a broken policy) from resolution (fixing the underlying bug so it doesn't come back).
Exam incident prompts always hand you a symptom, never the cause: "payments returns 503 since the last deploy," "pods in namespace X won't start," or "nothing can be created cluster-wide." Run your four-command opener to land on the right row, restore service first, and finish by re-running the original failing check to prove it's green.
After the fix
Fixing the outage is half the job; closing the loop is the other half. A crisp five-line postmortem takes five minutes to write:
- Symptom: what users or checks observed, with timestamps.
- Blast radius: what broke and what stayed healthy.
- Root cause: the exact mechanism that failed, never a person to blame.
- Fix: what resolved it (including dead ends worth documenting).
- Proof & prevention: the verification command that confirmed recovery, plus one concrete follow-up (an alert, policy, or default) so it can't recur.
Keep the SRE vocabulary handy too: MTTD (detect), MTTA (acknowledge), MTTR (restore), error budget (allowable unreliability under an SLO), and toil (manual, repetitive operational work that scales with load, which is exactly what platforms exist to eliminate).
Both on exam day and on call: stabilize users first (rollback, scale, fail over, bypass a broken guardrail), then fix the underlying root cause properly. Two different actions, two different urgencies: always be explicit about which one you've completed.
Exercises
One session per few days, not all at once:
make break # random fault from the whole library
make break-answer # only after you have committed to a diagnosisoutputcaptured 2026-08-27
$ make break # random fault from the whole library
==> Resetting the drill (heal previous fault, remove old scenario objects)
⏱ Fault injected. Domain: workload. Target: under 7 minutes (exam pace).
Ticket: "team-a: our 'broken' deployment is not healthy and we cannot see why. It worked an hour ago."
Start here:
kubectl -n team-a get pods
kubectl -n team-a describe pod <pod>
kubectl -n team-a get events --sort-by=.lastTimestamp | tail -20
kubectl -n team-a logs <pod> --previous
Reveal the answer when you're done: make break-answer
Auto-repair and see the evidence: make break-fix
$ make break-answer # only after you have committed to a diagnosis
rbac (domain: workload)
the pod was switched to sa/app-sa, which has no RBAC at all. Nothing in pod status shows it; only 'kubectl auth can-i --as=system:serviceaccount:team-a:app-sa' does. Fix: bind a Role with the needed verbs.Then drill the ones that hurt, by name. The classic workload seven: FAULT=image, probe, resources, rbac, quota, netpol, config. The rbac fault is invisible in pod listings and only surfaces under kubectl auth can-i --as=...; the netpol fault leaves everything Running while DNS is dead (the additive-allow-list lesson from 1.4). Beyond those, DOMAIN=gitops, cicd, apis or security scopes the draw to faults in the platform tooling itself: a frozen Argo CD sync, a suspended Flux Kustomization, a canary analysis querying a dead Prometheus, a Tekton pipeline missing its Task, a crashlooping EventListener, a Crossplane provider stripped of RBAC, a paused XR, a Kyverno Deny policy, a PSS flip. Those are the incidents domains 2, 3 and 5 grade.
make break-answer, and the fix confirmed by the failing behavior now succeeding. make break-fix afterwards shows the evidence trail a systematic diagnosis would have followed; compare it with the path you took and note where you diverged.Run FAULT=probe make break, but restrict yourself for the first three minutes to Grafana, Prometheus and Loki only: find the symptom in the namespace dashboard (restarts, readiness), the failing pod in kube_pod_container_status_ready, and the evidence in its logs via Explore. Then finish with kubectl.
After any drill, write five lines: symptom, blast radius, root cause, fix, the check that proves recovery.
Course platforms end this module with a scripted "repair a broken stack" lab; this version is unscripted. Pick a layer and delete something the stack depends on but that is easy to overlook (a ServiceMonitor, the Loki datasource ConfigMap, kyverno's webhook… choose while not thinking about diagnosis). Do something else for an hour, then come back and find it via make validate, whose failing checks are your incident ticket.
make validate returns to PASS with FAIL 0. Self-inflicted incidents with a validation suite are the closest thing to a free exam simulator this repo has.etcd's quota is a hard stop: once it trips the cluster goes read-only and stays that way until you compact, defrag and disarm the alarm. Four commands, in an order that has to be right.
This block lowers the quota on the kind control plane so the failure is reachable, then puts it back. Everything happens inside the control-plane container.
ETCD="kubectl -n kube-system exec etcd-cnpe-control-plane -- etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key"
$ETCD endpoint status -w table
docker exec cnpe-control-plane sed -i 's|- etcd$|- etcd\n - --quota-backend-bytes=16777216|' /etc/kubernetes/manifests/etcd.yaml
sleep 90
kubectl create configmap canary --from-literal=a=1
$ETCD alarm list
docker exec cnpe-control-plane sed -i '/--quota-backend-bytes=16777216/d' /etc/kubernetes/manifests/etcd.yaml
sleep 90
REV=$($ETCD endpoint status --write-out=json | jq -r '.[0].Status.header.revision')
$ETCD compact "$REV"
$ETCD defrag
$ETCD alarm disarm
$ETCD alarm list
kubectl create configmap canary --from-literal=a=1 && kubectl delete configmap canaryoutputcaptured 2026-11-18
$ ETCD="kubectl -n kube-system exec etcd-cnpe-control-plane -- etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key"
$ $ETCD endpoint status -w table
┌────────────────────────┬──────────────────┬─────────┬─────────────────┬─────────┬────────┬───────────────────────┬────────┬───────────┬────────────┬───────────┬────────────┬────────────────────┬────────┬──────────────────────────┬───────────────────┐
│ ENDPOINT │ ID │ VERSION │ STORAGE VERSION │ DB SIZE │ IN USE │ PERCENTAGE NOT IN USE │ QUOTA │ IS LEADER │ IS LEARNER │ RAFT TERM │ RAFT INDEX │ RAFT APPLIED INDEX │ ERRORS │ DOWNGRADE TARGET VERSION │ DOWNGRADE ENABLED │
├────────────────────────┼──────────────────┼─────────┼─────────────────┼─────────┼────────┼───────────────────────┼────────┼───────────┼────────────┼───────────┼────────────┼────────────────────┼────────┼──────────────────────────┼───────────────────┤
│ https://127.0.0.1:2379 │ 5320353a7d98bdee │ 3.7.0 │ 3.7.0 │ 130 MB │ 88 MB │ 33% │ 2.1 GB │ true │ false │ 3 │ 239545 │ 239543 │ │ │ false │
└────────────────────────┴──────────────────┴─────────┴─────────────────┴─────────┴────────┴───────────────────────┴────────┴───────────┴────────────┴───────────┴────────────┴────────────────────┴────────┴──────────────────────────┴───────────────────┘
$ docker exec cnpe-control-plane sed -i 's|- etcd$|- etcd\n - --quota-backend-bytes=16777216|' /etc/kubernetes/manifests/etcd.yaml
$ sleep 90
$ kubectl create configmap canary --from-literal=a=1
error: failed to create configmap: etcdserver: mvcc: database space exceeded
$ $ETCD alarm list
memberID:5989846029734297070 alarm:NOSPACE
$ docker exec cnpe-control-plane sed -i '/--quota-backend-bytes=16777216/d' /etc/kubernetes/manifests/etcd.yaml
$ sleep 90
$ REV=$($ETCD endpoint status --write-out=json | jq -r '.[0].Status.header.revision')
$ $ETCD compact "$REV"
compacted revision 230538
$ $ETCD defrag
Finished defragmenting etcd member[https://127.0.0.1:2379]. took 1.478135787s
$ $ETCD alarm disarm
memberID:5989846029734297070 alarm:NOSPACE
$ $ETCD alarm list
$ kubectl create configmap canary --from-literal=a=1 && kubectl delete configmap canary
configmap/canary created
configmap "canary" deleted from default namespaceetcdserver: mvcc: database space exceeded, alarm list shows NOSPACE, and writes only work again after compact, defrag and disarm in that order.Control-plane certificates expire, usually at the least convenient moment, and the command that tells you lives on the node rather than in the API. Run it once so you know where it is.
docker exec cnpe-control-plane kubeadm certs check-expiration
docker exec cnpe-control-plane sh -c 'ls -la /etc/kubernetes/pki/*.crt | head'
kubectl -n kube-system get cm kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' | head -20outputcaptured 2026-09-12
$ docker exec cnpe-control-plane kubeadm certs check-expiration
[check-expiration] Reading configuration from the "kubeadm-config" ConfigMap in namespace "kube-system"...
[check-expiration] Use 'kubeadm init phase upload-config kubeadm --config your-config-file' to re-upload it.
CERTIFICATE EXPIRES RESIDUAL TIME CERTIFICATE AUTHORITY EXTERNALLY MANAGED
admin.conf Sep 12, 2027 16:00 UTC 364d ca no
apiserver Sep 12, 2027 16:00 UTC 364d ca no
apiserver-etcd-client Sep 12, 2027 16:00 UTC 364d etcd-ca no
apiserver-kubelet-client Sep 12, 2027 16:00 UTC 364d ca no
controller-manager.conf Sep 12, 2027 16:00 UTC 364d ca no
etcd-healthcheck-client Sep 12, 2027 16:00 UTC 364d etcd-ca no
etcd-peer Sep 12, 2027 16:00 UTC 364d etcd-ca no
etcd-server Sep 12, 2027 16:00 UTC 364d etcd-ca no
front-proxy-client Sep 12, 2027 16:00 UTC 364d front-proxy-ca no
scheduler.conf Sep 12, 2027 16:00 UTC 364d ca no
super-admin.conf Sep 12, 2027 16:00 UTC 364d ca no
CERTIFICATE AUTHORITY EXPIRES RESIDUAL TIME EXTERNALLY MANAGED
ca Sep 09, 2036 16:00 UTC 9y no
etcd-ca Sep 09, 2036 16:00 UTC 9y no
front-proxy-ca Sep 09, 2036 16:00 UTC 9y no
$ docker exec cnpe-control-plane sh -c 'ls -la /etc/kubernetes/pki/*.crt | head'
-rw-r--r-- 1 root root 1123 Sep 12 16:00 /etc/kubernetes/pki/apiserver-etcd-client.crt
-rw-r--r-- 1 root root 1131 Sep 12 16:00 /etc/kubernetes/pki/apiserver-kubelet-client.crt
-rw-r--r-- 1 root root 1326 Sep 12 16:00 /etc/kubernetes/pki/apiserver.crt
-rw-r--r-- 1 root root 1107 Sep 12 16:00 /etc/kubernetes/pki/ca.crt
-rw-r--r-- 1 root root 1123 Sep 12 16:00 /etc/kubernetes/pki/front-proxy-ca.crt
-rw-r--r-- 1 root root 1119 Sep 12 16:00 /etc/kubernetes/pki/front-proxy-client.crt
$ kubectl -n kube-system get cm kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' | head -20
apiServer:
certSANs:
- localhost
- 127.0.0.1
extraArgs:
- name: runtime-config
value: ""
- name: audit-log-maxsize
value: "100"
- name: audit-log-path
value: /var/log/kubernetes/audit.log
- name: audit-policy-file
value: /etc/kubernetes/audit/policy.yaml
- name: audit-log-maxage
value: "2"
- name: audit-log-maxbackup
value: "2"
extraVolumes:
- hostPath: /etc/kubernetes/audit
mountPath: /etc/kubernetes/auditThe failure text from inside a pod is the thing you are asked to recognize: a resolver that is still configured and still reachable, and a lookup that fails anyway. Produce it deliberately, then put it back.
kubectl -n kube-system scale deploy coredns --replicas=0
until [ -z "$(kubectl -n kube-system get endpointslices -l kubernetes.io/service-name=kube-dns -o jsonpath='{.items[*].endpoints[*].addresses}')" ]; do sleep 5; done; echo 'kube-dns has no endpoints'
kubectl run dnsdead --image=busybox:1.28 --restart=Never -it --rm --command -- nslookup kubernetes.default || true
kubectl -n kube-system get endpointslices -l kubernetes.io/service-name=kube-dns
kubectl -n kube-system scale deploy coredns --replicas=2
kubectl -n kube-system rollout status deploy coredns --timeout=180s
kubectl run dnsalive --image=busybox:1.28 --restart=Never -it --rm --command -- nslookup kubernetes.defaultoutputcaptured 2026-09-12
$ kubectl -n kube-system scale deploy coredns --replicas=0
deployment.apps/coredns scaled
$ until [ -z "$(kubectl -n kube-system get endpointslices -l kubernetes.io/service-name=kube-dns -o jsonpath='{.items[*].endpoints[*].addresses}')" ]; do sleep 5; done; echo 'kube-dns has no endpoints'
kube-dns has no endpoints
$ kubectl run dnsdead --image=busybox:1.28 --restart=Never -it --rm --command -- nslookup kubernetes.default || true
Server: 10.96.0.10
Address 1: 10.96.0.10
nslookup: can't resolve 'kubernetes.default'
Unable to use a TTY - input is not a terminal or the right kind of file
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
warning: couldn't attach to pod/dnsdead, falling back to streaming logs: unable to upgrade connection: container dnsdead not found in pod dnsdead_default
Server: 10.96.0.10
Address 1: 10.96.0.10
nslookup: can't resolve 'kubernetes.default'
pod "dnsdead" deleted from default namespace
pod default/dnsdead terminated (Error)
$ kubectl -n kube-system get endpointslices -l kubernetes.io/service-name=kube-dns
NAME ADDRESSTYPE PORTS ENDPOINTS AGE
kube-dns-6x2kw IPv4 <unset> <unset> 8h
$ kubectl -n kube-system scale deploy coredns --replicas=2
deployment.apps/coredns scaled
$ kubectl -n kube-system rollout status deploy coredns --timeout=180s
Waiting for deployment "coredns" rollout to finish: 0 out of 2 new replicas have been updated...
Waiting for deployment "coredns" rollout to finish: 0 out of 2 new replicas have been updated...
Waiting for deployment "coredns" rollout to finish: 0 of 2 updated replicas are available...
Waiting for deployment "coredns" rollout to finish: 1 of 2 updated replicas are available...
deployment "coredns" successfully rolled out
$ kubectl run dnsalive --image=busybox:1.28 --restart=Never -it --rm --command -- nslookup kubernetes.default
Server: 10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local
Name: kubernetes.default
Address 1: 10.96.0.1 kubernetes.default.svc.cluster.local
Unable to use a TTY - input is not a terminal or the right kind of file
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
warning: couldn't attach to pod/dnsalive, falling back to streaming logs: unable to upgrade connection: container dnsalive not found in pod dnsalive_default
Server: 10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local
Name: kubernetes.default
Address 1: 10.96.0.1 kubernetes.default.svc.cluster.local
pod "dnsalive" deleted from default namespaceThis is the outage that takes a cluster down without touching the API server: an admission webhook that must be called, with nothing to call. Deleting the Deployment is faster than scaling, and the message is the one you must recognize within seconds.
kubectl get validatingwebhookconfiguration -o custom-columns=NAME:.metadata.name,POLICY:.webhooks[*].failurePolicy | grep -i kyverno
# own the webhook rather than scaling a shared component to zero, and scope it to a throwaway namespace
kubectl create ns wh-drill --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f - <<'EOF'
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata: { name: no-backend }
webhooks:
- name: no-backend.example.com
admissionReviewVersions: ["v1"]
sideEffects: None
failurePolicy: Fail
timeoutSeconds: 5
namespaceSelector:
matchLabels: { kubernetes.io/metadata.name: wh-drill }
clientConfig:
service: { name: nope, namespace: wh-drill, path: /validate, port: 443 }
rules:
- { apiGroups: [""], apiVersions: ["v1"], operations: ["CREATE"], resources: ["configmaps"], scope: Namespaced }
EOF
kubectl -n wh-drill create configmap blocked-cm --from-literal=a=1
kubectl get validatingwebhookconfiguration no-backend -o jsonpath='{.webhooks[0].failurePolicy} {.webhooks[0].timeoutSeconds}{"\n"}'
kubectl delete validatingwebhookconfiguration no-backend
kubectl -n wh-drill create configmap blocked-cm --from-literal=a=1
kubectl delete ns wh-drilloutputcaptured 2026-09-13
$ kubectl get validatingwebhookconfiguration -o custom-columns=NAME:.metadata.name,POLICY:.webhooks[*].failurePolicy | grep -i kyverno
kyverno-cel-exception-validating-webhook-cfg Fail
kyverno-cleanup-validating-webhook-cfg Fail
kyverno-exception-validating-webhook-cfg Fail
kyverno-global-context-validating-webhook-cfg Fail
kyverno-policy-validating-webhook-cfg Fail
kyverno-resource-validating-webhook-cfg Fail
kyverno-ttl-validating-webhook-cfg Ignore
$ # own the webhook rather than scaling a shared component to zero, and scope it to a throwaway namespace
$ kubectl create ns wh-drill --dry-run=client -o yaml | kubectl apply -f -
namespace/wh-drill created
$ kubectl apply -f - <<'EOF'
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata: { name: no-backend }
webhooks:
- name: no-backend.example.com
admissionReviewVersions: ["v1"]
sideEffects: None
failurePolicy: Fail
timeoutSeconds: 5
namespaceSelector:
matchLabels: { kubernetes.io/metadata.name: wh-drill }
clientConfig:
service: { name: nope, namespace: wh-drill, path: /validate, port: 443 }
rules:
- { apiGroups: [""], apiVersions: ["v1"], operations: ["CREATE"], resources: ["configmaps"], scope: Namespaced }
EOF
validatingwebhookconfiguration.admissionregistration.k8s.io/no-backend created
$ kubectl -n wh-drill create configmap blocked-cm --from-literal=a=1
error: failed to create configmap: Internal error occurred: failed calling webhook "no-backend.example.com": failed to call webhook: Post "https://nope.wh-drill.svc:443/validate?timeout=5s": service "nope" not found
$ kubectl get validatingwebhookconfiguration no-backend -o jsonpath='{.webhooks[0].failurePolicy} {.webhooks[0].timeoutSeconds}{"\n"}'
Fail 5
$ kubectl delete validatingwebhookconfiguration no-backend
validatingwebhookconfiguration.admissionregistration.k8s.io "no-backend" deleted
$ kubectl -n wh-drill create configmap blocked-cm --from-literal=a=1
configmap/blocked-cm created
$ kubectl delete ns wh-drill
namespace "wh-drill" deletedInternal error occurred: failed calling webhook "no-backend.example.com", naming the service that does not exist, and the same create succeeds once the webhook configuration is deleted. The two fields that decide whether this is an outage or a gap are failurePolicy and the match scope, here namespaceSelector plus rules. Under a clock the fix is to delete the webhook configuration and put it back afterwards. Scaling Kyverno to zero does not reproduce this: both creates succeed, so a down policy engine is not by itself a cluster outage on this install.kubectl debug node gives you a pod on the node with a chosen level of access. Knowing which profile grants what saves you from asking for privileged when you needed a network namespace.
kubectl debug node/cnpe-worker -it --image=busybox:1.36 --profile=sysadmin -- chroot /host sh -c 'ls /etc/kubernetes; cat /var/lib/kubelet/config.yaml | head -10'
kubectl debug node/cnpe-worker -it --image=nicolaka/netshoot:latest --profile=netadmin -- ip link
kubectl get pods -o name | grep node-debugger
kubectl delete pod -l app.kubernetes.io/managed-by=kubectl-debug --ignore-not-found
kubectl get pods -o name | grep node-debugger | xargs -r kubectl deleteoutputcaptured 2026-09-12
$ kubectl debug node/cnpe-worker -it --image=busybox:1.36 --profile=sysadmin -- chroot /host sh -c 'ls /etc/kubernetes; cat /var/lib/kubelet/config.yaml | head -10'
Creating debugging pod node-debugger-cnpe-worker-xf265 with container debugger on node cnpe-worker.
Unable to use a TTY - input is not a terminal or the right kind of file
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
warning: couldn't attach to pod/node-debugger-cnpe-worker-xf265, falling back to streaming logs: unable to upgrade connection: container debugger not found in pod node-debugger-cnpe-worker-xf265_default
kubelet.conf manifests pki
apiVersion: kubelet.config.k8s.io/v1beta1
authentication:
anonymous:
enabled: false
webhook:
cacheTTL: 0s
enabled: true
x509:
clientCAFile: /etc/kubernetes/pki/ca.crt
authorization:
$ kubectl debug node/cnpe-worker -it --image=nicolaka/netshoot:latest --profile=netadmin -- ip link
Creating debugging pod node-debugger-cnpe-worker-shgmz with container debugger on node cnpe-worker.
Unable to use a TTY - input is not a terminal or the right kind of file
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
warning: couldn't attach to pod/node-debugger-cnpe-worker-shgmz, falling back to streaming logs: unable to upgrade connection: rpc error: code = InvalidArgument desc = tty and stderr cannot both be true
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0@if22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether f6:bf:03:f1:53:11 brd ff:ff:ff:ff:ff:ff link-netnsid 0
3: cilium_net@cilium_host: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether fe:c6:be:4f:67:f8 brd ff:ff:ff:ff:ff:ff
4: cilium_host@cilium_net: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether ea:a5:4a:b9:92:c8 brd ff:ff:ff:ff:ff:ff
5: cilium_vxlan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/ether 42:d4:ee:8f:5c:90 brd ff:ff:ff:ff:ff:ff
7: lxc_health@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 9a:27:33:7a:69:07 brd ff:ff:ff:ff:ff:ff link-netnsid 1
11: lxcd355da451c82@if10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 5a:10:28:1c:33:0a brd ff:ff:ff:ff:ff:ff link-netnsid 3
15: lxcc6de2304ea73@if14: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fa:37:7d:9f:b9:84 brd ff:ff:ff:ff:ff:ff link-netnsid 4
17: lxce8009643b771@if16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 02:2e:2b:d8:d7:87 brd ff:ff:ff:ff:ff:ff link-netnsid 5
19: lxc39a31623cd62@if18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 52:2a:68:71:5a:c5 brd ff:ff:ff:ff:ff:ff link-netnsid 6
23: lxc3c34b6d00aee@if22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 6e:ce:31:d4:84:18 brd ff:ff:ff:ff:ff:ff link-netnsid 2
25: lxc462eb9990672@if24: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 1e:b9:db:d4:fd:3a brd ff:ff:ff:ff:ff:ff link-netnsid 8
27: lxc9da17d5cb210@if26: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 56:d5:63:4a:8d:e3 brd ff:ff:ff:ff:ff:ff link-netnsid 9
33: lxc6b7a1dc9d767@if32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 12:eb:27:a0:a3:9d brd ff:ff:ff:ff:ff:ff link-netnsid 12
35: lxc9281f9de561b@if34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether ba:90:29:b4:b9:fe brd ff:ff:ff:ff:ff:ff link-netnsid 13
37: lxc957282906d6f@if36: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether be:61:c4:6d:bc:19 brd ff:ff:ff:ff:ff:ff link-netnsid 14
41: lxc54dcffdf2a27@if40: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 32:20:ce:9c:c8:c6 brd ff:ff:ff:ff:ff:ff link-netnsid 16
43: lxcee11a1eb7c67@if42: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
... 55 more lines
$ kubectl get pods -o name | grep node-debugger
pod/node-debugger-cnpe-worker-shgmz
pod/node-debugger-cnpe-worker-xf265
$ kubectl delete pod -l app.kubernetes.io/managed-by=kubectl-debug --ignore-not-found
pod "node-debugger-cnpe-worker-shgmz" deleted from default namespace
pod "node-debugger-cnpe-worker-xf265" deleted from default namespace
$ kubectl get pods -o name | grep node-debugger | xargs -r kubectl deleteA liveness probe on the wrong port restarts a container that is working perfectly. The evidence is an exit code and an event, and the diagnosis has to separate "the app is broken" from "we are killing it".
kubectl -n default create deployment probed --image=ghcr.io/stefanprodan/podinfo:6.7.1
kubectl -n default patch deployment probed --type merge -p '{"spec":{"template":{"spec":{"containers":[{"name":"podinfo","image":"ghcr.io/stefanprodan/podinfo:6.7.1","livenessProbe":{"httpGet":{"path":"/healthz","port":9999},"initialDelaySeconds":5,"periodSeconds":5,"failureThreshold":2}}]}}}}'
sleep 90
kubectl -n default get pods -l app=probed
POD=$(kubectl -n default get pod -l app=probed -o jsonpath='{.items[0].metadata.name}')
kubectl -n default get pod "$POD" -o jsonpath='{.status.containerStatuses[0].lastState}' | jq
kubectl -n default describe pod "$POD" | sed -n '/Events/,$p'
kubectl -n default delete deployment probedoutputcaptured 2026-11-18
$ kubectl -n default create deployment probed --image=ghcr.io/stefanprodan/podinfo:6.7.1
deployment.apps/probed created
$ kubectl -n default patch deployment probed --type merge -p '{"spec":{"template":{"spec":{"containers":[{"name":"podinfo","image":"ghcr.io/stefanprodan/podinfo:6.7.1","livenessProbe":{"httpGet":{"path":"/healthz","port":9999},"initialDelaySeconds":5,"periodSeconds":5,"failureThreshold":2}}]}}}}'
deployment.apps/probed patched
$ sleep 90
$ kubectl -n default get pods -l app=probed
NAME READY STATUS RESTARTS AGE
probed-58c8d84f9d-hsm22 1/1 Running 4 (26s ago) 90s
$ POD=$(kubectl -n default get pod -l app=probed -o jsonpath='{.items[0].metadata.name}')
$ kubectl -n default get pod "$POD" -o jsonpath='{.status.containerStatuses[0].lastState}' | jq
{
"terminated": {
"containerID": "containerd://e0dd37c9689fa866e91c2aea9b87e789580afd1a188dc416190b21f231d7991a",
"exitCode": 0,
"finishedAt": "2026-11-18T09:01:25Z",
"reason": "Completed",
"startedAt": "2026-11-18T09:01:12Z"
}
}
$ kubectl -n default describe pod "$POD" | sed -n '/Events/,$p'
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning PolicyViolation 91s kyverno-admission policy require-resource-requests/validation fail: every container must set cpu and memory requests
Normal Scheduled 91s default-scheduler Successfully assigned default/probed-58c8d84f9d-hsm22 to cnpe-worker
Warning PolicyViolation 61s kyverno-scan policy require-resource-requests/validation fail: every container must set cpu and memory requests
Warning Unhealthy 30s (x8 over 80s) kubelet spec.containers{podinfo}: Liveness probe failed: Get "http://10.244.2.253:9999/healthz": dial tcp 10.244.2.253:9999: connect: connection refused
Normal Killing 30s (x4 over 75s) kubelet spec.containers{podinfo}: Container podinfo failed liveness probe, will be restarted
Warning BackOff 26s (x2 over 27s) kubelet spec.containers{podinfo}: Back-off restarting failed container podinfo in pod probed-58c8d84f9d-hsm22_default(824e6976-387c-43a1-b596-6c3397518f2e)
Normal Pulled 3s (x5 over 88s) kubelet spec.containers{podinfo}: Container image "ghcr.io/stefanprodan/podinfo:6.7.1" already present on machine and can be accessed by the pod
Normal Created 3s (x5 over 87s) kubelet spec.containers{podinfo}: Container created
Normal Started 2s (x5 over 87s) kubelet spec.containers{podinfo}: Container started
$ kubectl -n default delete deployment probed
deployment.apps "probed" deleted from default namespaceLiveness probe failed with connection refused on port 9999 followed by Killing and BackOff, and lastState.terminated records the kill. The exit code is 0 with reason Completed, not 143, because podinfo handles SIGTERM and exits cleanly; 143 is what you see from a process that ignores it. The probe event plus the restart count is the evidence that separates "the app is broken" from "we are killing it", and the exit code alone does not./readyz?verbose lists every readiness check the API server runs and which one is failing. It is the fastest first command on a control plane that feels wrong, and it needs no tooling.
kubectl get --raw '/readyz?verbose' | tail -30
kubectl get --raw '/livez?verbose' | tail -10
kubectl get --raw '/healthz/etcd'
kubectl get componentstatuses 2>/dev/null || echo 'componentstatuses is deprecated and may be gone'outputcaptured 2026-09-12
$ kubectl get --raw '/readyz?verbose' | tail -30
[+]poststarthook/priority-and-fairness-filter ok
[+]poststarthook/storage-object-count-tracker-hook ok
[+]poststarthook/start-apiextensions-informers ok
[+]poststarthook/start-apiextensions-controllers ok
[+]poststarthook/crd-informer-synced ok
[+]poststarthook/start-system-namespaces-controller ok
[+]poststarthook/peer-endpoint-reconciler-controller ok
[+]poststarthook/start-cluster-authentication-info-controller ok
[+]poststarthook/start-kube-apiserver-identity-lease-controller ok
[+]poststarthook/start-kube-apiserver-identity-lease-garbage-collector ok
[+]poststarthook/storage-readiness ok
[+]poststarthook/start-legacy-token-tracking-controller ok
[+]poststarthook/start-service-ip-repair-controllers ok
[+]poststarthook/rbac/bootstrap-roles ok
[+]poststarthook/scheduling/bootstrap-system-priority-classes ok
[+]poststarthook/priority-and-fairness-config-producer ok
[+]poststarthook/bootstrap-controller ok
[+]poststarthook/start-kubernetes-service-cidr-controller ok
[+]poststarthook/aggregator-reload-proxy-client-cert ok
[+]poststarthook/start-kube-aggregator-informers ok
[+]poststarthook/apiservice-status-local-available-controller ok
[+]poststarthook/apiservice-status-remote-available-controller ok
[+]poststarthook/apiservice-registration-controller ok
[+]poststarthook/apiservice-discovery-controller ok
[+]poststarthook/kube-apiserver-autoregistration ok
[+]autoregister-completion ok
[+]poststarthook/apiservice-openapi-controller ok
[+]poststarthook/apiservice-openapiv3-controller ok
[+]shutdown ok
readyz check passed
$ kubectl get --raw '/livez?verbose' | tail -10
[+]poststarthook/start-kube-aggregator-informers ok
[+]poststarthook/apiservice-status-local-available-controller ok
[+]poststarthook/apiservice-status-remote-available-controller ok
[+]poststarthook/apiservice-registration-controller ok
[+]poststarthook/apiservice-discovery-controller ok
[+]poststarthook/kube-apiserver-autoregistration ok
[+]autoregister-completion ok
[+]poststarthook/apiservice-openapi-controller ok
[+]poststarthook/apiservice-openapiv3-controller ok
livez check passed
$ kubectl get --raw '/healthz/etcd'
ok
$ kubectl get componentstatuses 2>/dev/null || echo 'componentstatuses is deprecated and may be gone'
NAME STATUS MESSAGE ERROR
scheduler Healthy ok
controller-manager Healthy ok
etcd-0 Healthy ok Self-check
Every pod in a namespace is Running and the app returns nothing. First three moves?
Force a real request (run curl or nslookup from inside the namespace) so you have live evidence; inspect the Service's EndpointSlice and pod readiness; then check Hubble for DROPPED NetworkPolicy verdicts and DNS resolution. "Running" only proves kubelet started the container.
A pod is CrashLoopBackOff and kubectl logs shows nothing useful.
Run kubectl logs --previous so you read the container that actually crashed rather than the fresh one still starting. Follow up with kubectl describe pod and lastState.terminated for the exit code and reason (137 + OOMKilled points to memory; 1 with stack trace points to app config).
Nothing can be created cluster-wide; every apply times out with a webhook error. What happened and what is the lever?
An admission webhook's backend is down while its failurePolicy is set to Fail, blocking every matching write. Fix the backend Deployment first, or in a genuine emergency, scope or remove the webhook configuration temporarily (section 5.2).
You have four minutes left and no theory that fits the evidence. What do you do?
Pull back to Step 1 and widen: re-check blast radius and recent events instead of digging deeper into the wrong object. Under exam pressure, flag the task and move on, because getting stuck on one hard task costs you two easy ones.
What proves an incident is over?
Re-running the exact check that failed and seeing it pass: the broken curl returns 200, the alert clears, or the validation probe succeeds. A pod saying Running never proves recovery on its own.
Every write to the cluster fails with etcdserver: mvcc: database space exceeded but reads work. What happened and what is the order of operations?
etcd filled its backend quota (2 GiB default) and tripped the NOSPACE alarm, flipping the store read-only. Run compact → defragment every member → etcdctl alarm disarm (in that exact order), raise --quota-backend-bytes if growth is legitimate, and track down whatever flooded etcd (event storms, giant ConfigMaps, or a looping controller).
A container exits with code 143 every 30 seconds and the app logs look healthy. Diagnosis?
Exit code 143 is SIGTERM: Kubernetes is gracefully killing it on a timer, which almost always means a failing liveness probe (wrong port/path, or timeout too short for startup). Check kubectl describe pod for Liveness probe failed events and fix the probe or add a startupProbe.
You roll a Deployment back with kubectl rollout undo and two minutes later it is broken again. Why, and what should you have done?
Your GitOps controller reconciled Git back onto the cluster. Either pause reconciliation first (argocd app set x --sync-policy none or flux suspend kustomization x) for an emergency undo, or go straight to reverting the Git commit so the controller rolls back cleanly for you.
Which kubectl debug invocation gives you tcpdump on a node without full root, and why does the default node debug pod fail at chroot /host?
Run kubectl debug node/<n> -it --image=<image with tcpdump> --profile=netadmin to grant NET_ADMIN and NET_RAW without full privilege. The default general profile mounts /host unprivileged, so host-root operations like chroot fail unless you pass --profile=sysadmin.
Docs to know your way around
- kubernetes.io: Debug Pods / Debug Running Pods (the ephemeral containers page), Troubleshooting Applications, and the Debug Cluster pages.
- sre.google: the postmortem culture chapter, for the vocabulary a scenario question may borrow.
- Your own postmortem notes: by the third drill they are the best incident doc you own.
- kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod (ephemeral containers,
--copy-to,--share-processes) and /debug-cluster/kubectl-node-debug (the/hostmount and profiles). - kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle: container states, the CrashLoopBackOff backoff rules and
restartPolicy; /docs/tasks/debug/debug-cluster for node and control-plane logs. - etcd.io/docs/latest/op-guide/maintenance: compaction, defragmentation and the space quota alarm sequence.
make down-obs