An open API service indexing awesome lists of open source software.

https://github.com/maroshmka/kube-secrets

Easier management of kubernetes secrets.
https://github.com/maroshmka/kube-secrets

json kube-secrets kubernetes secrets yaml

Last synced: 2 months ago
JSON representation

Easier management of kubernetes secrets.

Awesome Lists containing this project

README

          

# kube-secrets

Small package for easier management of kube secrets.

# install

```bash
$ pip3 install kube-secrets
```

# usage

data json from stdin -> kube secret

```bash
$ vault read secret/my-app -format=json | jq '.data' | \
kube-secrets create --name my-project-secrets -n my-namespace -
```

data json from file -> kube secret
```bash
$ echo '{"a": "top-secret"}' > s.json
$ kube-secrets create --name my-project-secrets -n my-namespace --data-file=s.json
```

# what

__Problem:__ You want to export json/yaml file as kube secrets and use them. Secrets need to be \
encoded in base64. You need to write yaml manifest and put there encoded secrets.

This package should make it easier for you to just grab json and export it.

# next features

- update mode
- delete + create
- edit directly on localhost
- decode, open in EDITOR, save, encode, push