diff --git a/pages/common/k8sec.md b/pages/common/k8sec.md new file mode 100644 index 0000000000..5f3c689a86 --- /dev/null +++ b/pages/common/k8sec.md @@ -0,0 +1,32 @@ +# k8sec + +> Command line interface tool to manage Kubernetes secrets. +> More information: . + +- List all secrets: + +`k8sec list` + +- List a specific secret and decode it with base64: + +`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}}`