Try with sops
This commit is contained in:
parent
956ce0deb9
commit
2f9da68ad2
7 changed files with 48 additions and 2 deletions
20
README.md
20
README.md
|
@ -7,4 +7,22 @@
|
|||
- minikube addons enable metrics-server
|
||||
- minikube dashboard
|
||||
- minikube addons enable ingress
|
||||
- curl --resolve "nginx.example:80:$( minikube ip )" -i http://nginx.example
|
||||
- curl --resolve "nginx.example:80:$( minikube ip )" -i http://nginx.example
|
||||
|
||||
## Sops
|
||||
|
||||
### How run kubectl with sops
|
||||
|
||||
```console
|
||||
function sops_kubectl() {
|
||||
find . -type f -name '*secret.properties.enc' -exec sh -c 'sops -d "$1" > "${1%.enc}"' _ {} \;
|
||||
kubectl $@
|
||||
find . -type f -name '*secret.properties' -exec sh -c 'rm "$1"' _ {} \;
|
||||
}
|
||||
```
|
||||
|
||||
### Git config
|
||||
|
||||
```console
|
||||
git config diff.sopsdiffer.textconv "sops decrypt"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue