Interview Prep/Kubernetes/Pod startup failures

Pod status is `CreateContainerConfigError` and describe shows `Error: secret "db-creds" not found`.

BeginnerTroubleshootingPod startup failures
Answer

Likely causes → The Secret referenced by envFrom, valueFrom.secretKeyRef or a volume does not exist in the Pod's namespace (created in another namespace, not yet synced by External Secrets, name typo).

Diagnose →

kubectl get secret db-creds -n payments
kubectl get externalsecret -n payments          # if ESO is used
kubectl describe externalsecret db-creds -n payments

Fix → Create the Secret in the same namespace, or fix the ExternalSecret (store reference, IAM permission, remote key). The kubelet retries and the container starts once the Secret appears.

Prevent → Apply Secrets before workloads (Argo CD sync waves, Helm ordering), and alert on ExternalSecret SecretSyncedError.

All Kubernetes questions Roadmap: Kubernetes core

More on Pod startup failures