kubers/README.md

30 lines
640 B
Markdown
Raw Normal View History

2023-06-01 08:14:42 +00:00
# kubers
> Kubecl Reveal Secrets
2023-06-01 17:47:16 +00:00
kubers is a super simple tool that reveals k8s secrets using kubectl and yq
2023-06-01 08:14:42 +00:00
2023-06-01 21:24:05 +00:00
The tool requires `yq` and `kubectl`
Usage:
kubers [-V | --version] [-h | --help] [-n | --namespace <namespace>] [-c <name>=<value>]
<secret_name> [<entry_name>]
Examples:
If you want to reveal all entries in the current k8s namespace
2023-06-01 21:24:05 +00:00
```
2023-06-01 21:30:28 +00:00
$ kubers $SECRET_NAME
2023-06-01 21:24:05 +00:00
```
If you want to reveal only one entry from the secret in the current namepspace
2023-06-01 21:24:05 +00:00
```
2023-06-01 21:30:28 +00:00
$ kubers $SECRET_NAME $SECRET_ENTRY
2023-06-01 21:24:05 +00:00
```
If you want to reveal a secret from another namespace
2023-06-01 21:24:05 +00:00
```
2023-06-01 21:30:28 +00:00
$ kubers -n $SECRET_NAME
2023-06-01 21:24:05 +00:00
```