-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (23 loc) · 1.08 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
.PHONY: infra-up
infra-up:
(cd infrastructure && terraform init && terraform apply -auto-approve)
.PHONY: infra-down
infra-down:
(cd infrastructure && terraform destroy -auto-approve)
.PHONY: kubeconfig
kubeconfig:
(cd infrastructure && terraform output -raw kubeconfig > ./kubeconfig.yaml && chmod 600 ./kubeconfig.yaml)
@echo
@echo "DO NOT FORGET TO SET KUBECONFIG ENVIRONMENT VARIABLE"
@echo "export KUBECONFIG=$(pwd)/infrastructure/kubeconfig.yaml"
.PHONY: install-argocd
install-argocd:
helm repo add argo https://argoproj.github.io/argo-helm --force-update
helm upgrade --install -n argocd --create-namespace argocd argo/argo-cd --values ./k8s/values/argo-cd.yaml
.PHONY: install-argorollouts
install-argorollouts:
helm repo add argo https://argoproj.github.io/argo-helm --force-update
helm upgrade --install -n argo-rollouts --create-namespace argo-rollouts argo/argo-rollouts --values ./k8s/values/argo-rollouts.yaml
.PHONY: install-kargo
install-kargo:
helm upgrade --install -n kargo --create-namespace kargo oci://ghcr.io/akuity/kargo-charts/kargo --values ./k8s/values/kargo.yaml