Back to Challenges
mediumVolumes & Secrets
Secret Not Shared
A microservice can't connect to the database because it's missing credentials. The Secret exists, but the pod doesn't have access to it.
20 min
Initial Situation
A new microservice was deployed that needs to connect to a PostgreSQL database. The database credentials are stored in a Kubernetes Secret. The Secret exists and contains the correct username and password. However, the pod fails to start with an error: "DATABASE_PASSWORD environment variable not set". The deployment manifest has a reference to the Secret, but something is wrong with the configuration.
Your Mission0/2
Loading validation status...
Start this challenge in your local Kubernetes cluster:
$ kubeasy challenge start secret-not-shared