Back to Challenges
Missing Credentials
A microservice can't connect to the database - it says the password is missing. But the Secret is right there in the namespace. What's going on?
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 called "database-credentials". Running kubectl get secret shows the Secret exists with the expected keys. However, the pod keeps crashing with: "DATABASE_USER environment variable not set". The Secret is there, but the pod isn't receiving the credentials properly.
Your Mission0/2
Loading validation status...
Start this challenge in your local Kubernetes cluster:
$ kubeasy challenge start missing-credentials