Introduction
Sometimes applications need sensitive information like passwords or API keys. Storing these secrets safely and making them available to apps without exposing them in code is important. Kubernetes lets you store secrets and mount them as files inside your app's containers.
When your app needs a database password without hardcoding it in the app code.
When you want to provide TLS certificates to your app securely.
When you need to share API keys with your app without exposing them in environment variables.
When you want to update secrets without rebuilding your app image.
When you want to keep sensitive data separate from your app configuration files.