Kubernetes

2 notes · 20 Nov 2026

Week 47

16–22 Nov 2026

2 notes

  1. 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.

  2. 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.

All topics