Kubernetes
Medium
Concepts
What is the purpose of a Kubernetes InitContainer?
Select your answer:
Show answer and explanation
Answer: To run before app containers in a pod and complete before app containers start
Explanation
InitContainers run before the app containers in a pod and must complete successfully before the app containers can start. They are useful for setup tasks like database schema initialization, dependency checking, or delaying application startup until prerequisites are met.
More medium Kubernetes questions
- Which component is responsible for scheduling pods onto nodes?
- What is the purpose of a Kubernetes ResourceQuota?
- What is the difference between a RollingUpdate and a Recreate deployment strategy?
- Which command would you use to view the logs of a specific container in a multi-container pod?
- What is a Kubernetes Toleration?
- What is the purpose of a Kubernetes StorageClass?