Interview Prep/Helm/Hooks, Tests, GitOps & Secrets

Pods fail with `CreateContainerConfigError: secret "shop-db" not found` after moving secrets out of the chart into External Secrets.

IntermediateTroubleshootingHooks, Tests, GitOps & Secrets
Answer

Likely causes → The ExternalSecret is not yet synced (SecretStore auth failure, wrong remote key), or its target.name differs from the name the Deployment references.

Diagnose →

kubectl get externalsecret -n shop
kubectl describe externalsecret shop-db -n shop | sed -n '/Status/,$p'
kubectl get secretstore,clustersecretstore -A

Fix → Fix the store credentials (IRSA/Pod Identity role), the remote key path, or align target.name with the chart's existingSecret value.

Prevent → Deploy ExternalSecrets with a sync wave or hook before workloads, and alert on SecretSyncedError.

All Helm questions Roadmap: Helm

More on Hooks, Tests, GitOps & Secrets