No description
mysql | ||
mysql_cluster | ||
nginx | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md |
kubernetes-learn
Minikube
- minikube start --driver=kvm2 --nodes=3 --kvm-qemu-uri=qemu:///system --kvm-network=default --cpus=8 --memory=8g
- minikube delete --purge
- minikube addons enable metrics-server
- minikube dashboard
- minikube addons enable ingress
- curl --resolve "nginx.example:80:$( minikube ip )" -i http://nginx.example
Sops
How run kubectl with sops
function sops_kubectl() {
find . -type f -name '*secret.properties.enc' -exec sh -c 'sops decrypt "$1" > "${1%.enc}"' _ {} \;
kubectl $@
find . -type f -name '*secret.properties' -exec sh -c 'rm "$1"' _ {} \;
}
Git config
git config diff.sopsdiffer.textconv "sops decrypt"