mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-08 08:57:25 +00:00
Update cheatsheets
This commit is contained in:
37
k8sec
Normal file
37
k8sec
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user