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.
More on Hooks, Tests, GitOps & Secrets
`Error: INSTALLATION FAILED: failed post-install: job failed: BackoffLimitExceeded`Beginner`Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition`Intermediate`Error: UPGRADE FAILED: pre-upgrade hooks failed: warning: Hook pre-upgrade shop/templates/migrate-job.yaml failed: jobs.batch "shop-migrate" already exists`BeginnerThe migration hook fails with `psql: error: connection to server at "shop-postgres" (10.96.12.4), port 5432 failed: Connection refused` on first install.IntermediateOn upgrade, the migration Job runs the **old** SQL even though the chart contains new migration files.Advanced`helm test` fails with `Error: unable to get pod logs for shop-test-api: pods "shop-test-api" not found`.Intermediate