大网数据广告活动
Linux 与通用命令

kubeseal · 常用命令示例

· 52CE 我爱测

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 controll

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。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
tldr-pages contributors
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。