Secrets¶
Description¶
A Secret stores sensitive data such as credentials, tokens, and API keys.
Secrets allow applications to access confidential data securely without embedding it in container images.
Examples of secret data include:
- database passwords
- API tokens
- TLS certificates
Example Secret¶
Values must be base64 encoded.
Using Secrets in a Pod
Common Commands¶
Create secret:
View secrets:
Security Considerations¶
- restrict access using RBAC
- avoid committing secrets to version control
- rotate credentials regularly
Related Resources¶
- ConfigMaps
- Pods