1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages/common/k8sec.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

32 lines
616 B
Markdown

# k8sec
> Command-line interface tool to manage Kubernetes secrets.
> More information: <https://github.com/dtan4/k8sec>.
- List all secrets:
`k8sec list`
- List a specific secret as a base64-encoded string:
`k8sec list {{secret_name}} --base64`
- Set a secret's value:
`k8sec set {{secret_name}} {{key=value}}`
- Set a base64-encoded value:
`k8sec set --base64 {{secret_name}} {{key=encoded_value}}`
- Unset a secret:
`k8sec unset {{secret_name}}`
- Load secrets from a file:
`k8sec load -f {{path/to/file}} {{secret_name}}`
- Dump secrets to a file:
`k8sec dump -f {{path/to/file}} {{secret_name}}`