forked from FlipEnergy/k8s-homelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (20 loc) · 768 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
context := homelab
syncthing_namespace := syncthing
deploy:
kubectl --context homelab get configmap -n kube-system coredns -o json | sed 's+/etc/resolv.conf+192.168.1.1+' | kubectl --context homelab apply -f -
sops -d ingress-nginx/secret.default-ssl-certs.yaml | kubectl --context $(context) -n default apply -f -
docker run --rm -it \
-v $$(pwd):/k8s-homelab \
-v ~/.kube/config:/root/.kube/config \
-v ~/.gnupg:/root/.gnupg \
-w /k8s-homelab \
praqma/helmsman:latest \
helmsman $(options) -p 3 -show-diff --apply -f ${context}.yaml
destroy:
docker run --rm -it \
-v $$(pwd):/k8s-homelab \
-v ~/.kube/config:/root/.kube/config \
-v ~/.gnupg:/root/.gnupg \
-w /k8s-homelab \
praqma/helmsman:latest \
helmsman $(options) --destroy -f ${context}.yaml