KubeasyKubeasy

Master Kubernetes through hands-on challenges and real-world scenarios. Free, open-source learning platform for developers.

Product

  • Challenges
  • Documentation
  • CLI Tool

Community

  • GitHub
  • Discord
  • Contribute

Legal

  • Privacy
  • Terms
  • License

© 2025 Kubeasy. Open source under Apache License 2.0.

KubeasyKubeasyKubeasy
  • Challenges
  • Blog
  • Documentation
Sign InTry Demo
Back to Challenges
mediumVolumes & SecretsFix

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