-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (27 loc) · 1.51 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: add-helm-repos, pre-install, install, uninstall
check-tools:
true #kubectl,helmkub
add-helm-repos:
helm repo add jetstack https://charts.jetstack.io
helm repo add nginx https://helm.nginx.com/stable
helm repo add argo https://argoproj.github.io/argo-helm
helm repo add prometheus https://prometheus-community.github.io/helm-charts
helm repo update
pre-install:
kubectl apply -f namespaces/namespaces.yaml
kubectl apply -f cert-manager/crds.yaml
install: add-helm-repos pre-install
helm upgrade --wait --install cert-manager jetstack/cert-manager --namespace cert-manager --version 1.1.0 --values ./cert-manager/custom-values.yaml
helm upgrade --wait --install nginx-ingress nginx/nginx-ingress --namespace nginx-ingress --version 0.7.1 --values ./nginx-ingress/custom-values.yaml
kubectl apply -f cert-manager/cluster-issuer.yaml
helm upgrade --wait --install argo-cd argo/argo-cd --namespace argo-cd --version 2.10.0 --values ./argo-cd/custom-values.yaml
kubectl apply -f argo-cd/bootstrap.yaml
uninstall:
kubectl delete app -n argo-cd --wait=true apps || true
kubectl delete --wait=true -f argo-cd/bootstrap.yaml || true
helm uninstall --wait -n argo-cd argo-cd || true
helm uninstall --wait -n nginx-ingress nginx-ingress || true
kubectl delete --wait=true -f cert-manager/cluster-issuer.yaml || true
helm uninstall --wait -n cert-manager cert-manager || true
kubectl delete --wait=true -f cert-manager/crds.yaml || true
kubectl delete --wait=true -f namespaces/namespaces.yaml || true