Company
Date Published
Oct. 25, 2022
Author
Divine Odazie
Word count
2675
Language
English
Hacker News points
None

Summary

Kubernetes Secrets are objects that store sensitive data such as login usernames and passwords, tokens, keys, etc., to reduce the risk of exposing sensitive data while deploying applications on Kubernetes. They can be created using kubectl, a manifest file, or a generator like Kustomize. There are several types of Secrets, including Opaque Secrets, Service account token Secrets, Docker config Secrets, Basic authentication Secret, SSH authentication secrets, TLS secrets, and Bootstrap token Secrets. Secrets can be used in Pods as container environment variables or files in a volume mounted on one or more of its containers. They can also be used by the kubelet when pulling images for the Pod. To ensure safety, it is recommended to enable encryption at rest for Secrets and set least-privilege access to Secrets as the default setting with RBAC rules.