The Startup Sequence When a Pod Has Multiple Containers
Overview I wrote a Kubernetes book called “Kubernetesマイクロサービス開発の実践” (Practical Kubernetes Microservices Development), and it’s now out! Please go buy it! “Kubernetesマイクロサービス開発の実践” Chapter 7 of the book covers the process from when a Pod object is created on the API Server to when the Pod actually starts running — but for various reasons, there’s one particularly nitty-gritty piece of behavior we couldn’t fit in the book: what happens when a Pod has multiple containers, and one or more of them uses a postStart lifecycle hook. This post writes up how such a Pod behaves when it starts. ...