KubestronautAcademy
0Continue learning
Module 3 › Debugging Applications › Flashcards
Flashcards · optional

Flashcards: Debugging Applications

0/16 known
11. Debugging Applications
kubectl logs --previous
Click or press Space to flip
kubectl logs --previous
Shows the logs of the previous, terminated instance of a container; key for CrashLoopBackOff.

Card 1 of 16

kubectl logs --previous
Shows the logs of the previous, terminated instance of a container; key for CrashLoopBackOff.
kubectl exec
Runs a command inside an existing container; requires that binary (e.g. a shell) to exist in the image.
kubectl port-forward
Tunnels a local port to a port on a Pod (or one Pod behind a Service) through the API server for testing.
kubectl debug
Adds an ephemeral container to a Pod, creates a modified copy of a Pod (--copy-to), or starts a debug Pod on a node.
Ephemeral container
Temporary container added to a running Pod for troubleshooting; no ports or probes, never restarted, cannot be removed.
Distroless image
Minimal image containing only the app and its runtime dependencies, without a shell or package manager.
Process namespace sharing
Containers that share a PID namespace can see each other’s processes; kubectl debug --target uses it.
Event
Short-lived API object recording something that happened to an object (scheduling, pulls, probe failures, mounts).
CreateContainerConfigError
Container status when its configuration cannot be built, typically a missing ConfigMap/Secret or key.
CrashLoopBackOff
Container repeatedly exits and the kubelet waits an increasing delay before restarting it.
Readiness probe
Check that decides whether a Pod receives Service traffic; failure removes it from endpoints without restarting it.
Server-side dry run
--dry-run=server: the request is validated and admitted by the API server but not persisted.
kubectl diff
Shows the differences between local manifests and the live objects before applying.
kubectl rollout undo
Reverts a Deployment (or DaemonSet/StatefulSet) to a previous revision.
ProgressDeadlineExceeded
Deployment condition reason set when a rollout makes no progress within progressDeadlineSeconds (default 600 s).
netshoot
Community container image packed with network troubleshooting tools (curl, dig, tcpdump) for temporary debug Pods.