Kubernetes
Week 47
16–22 Nov 2026
2 notes
- kubectl logs --previous fails while a crashing pod shows Error instead of CrashLoopBackOff
kubectl logs --previous fails while a crashing pod shows Error, because the finished instance is still the current container and a previous one exists only during CrashLoopBackOff.
- kubectl-generated YAML lists container fields alphabetically, so sed on '- name:' silently misses
kubectl writes a container's fields in alphabetical order, so the list item starts with image, and a sed pattern on '- name:' matches nothing while still exiting 0.