Kubernetes - Secrets
You wrote this Pod spec to use a Secret as an environment variable but the Pod fails to start:
The Secret
env:
- name: PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: passThe Secret
db-secret exists but the Pod error says key not found. What is the likely problem?