How should a container receive a single Secret key password from Secret db-creds as the environment variable DB_PASSWORD?
Select an answer to reveal the explanation.
Short Explanation
secretKeyRef is a precise straw: one Secret key poured into one env var. Point valueFrom.secretKeyRef at db-creds / password for DB_PASSWORD. imagePullSecrets and raw Secret names in value don't do that mapping.
Full Explanation
Individual Secret keys are injected into environment variables with env[].valueFrom.secretKeyRef, specifying the Secret name and key. Mounting etcd, placing the Secret name in env.value, or listing the Secret under imagePullSecrets does not populate application env vars from Secret data.