Problem Statement
What are init containers in Kubernetes and why would you use them?
Explanation
Init containers are special containers that run one by one before any regular containers in a Pod start. They can perform initialization tasks such as setting up configuration, waiting for external services, preparing data volumes, or applying migrations. After they complete successfully, main containers start. Using init containers helps enforce dependencies and make Pod initialization more robust.
