Try with sops

This commit is contained in:
Florian RICHER 2025-03-27 16:52:50 +01:00
parent 956ce0deb9
commit 2f9da68ad2
7 changed files with 48 additions and 2 deletions

View file

@ -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"
```