kubeseal
Client-side utility for encrypting Kubernetes secrets using the Bitnami Sealed Secrets controller. Creates SealedSecret resources that can be safely stored in version control. Requires a controller running in the cluster (e.g., installed via
kubectl apply --filename controller.yaml). More information: https://github.com/bitnami-labs/sealed-secrets.
- Encrypt a Kubernetes secret from a YAML file into a SealedSecret (default JSON output):
kubeseal < >
- Encrypt a secret, outputting it in YAML or JSON format, using a bearer token for API authentication:
kubeseal < --token >
- Seal a secret using a specific controller namespace of sealed-secrets controller and name:
kubeseal < --controller-namespace --controller-name >
- Encrypt a raw secret value from a file with a specified name and scope:
kubeseal --raw --from-file --name --scope >
- Fetch the controller's public certificate for offline sealing with basic auth:
kubeseal --fetch-cert --username --password >
- Seal a secret offline using a fetched certificate:
kubeseal < --cert >
- Merge a secret into an existing SealedSecret file in-place:
kubeseal < --merge-into
- Validate a SealedSecret without applying it:
kubeseal < --validate
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
