khuedoan-homelab/apps/Makefile

17 lines
399 B
Makefile
Raw Normal View History

2021-04-25 12:30:33 +07:00
.POSIX:
2021-05-23 01:53:09 +07:00
.EXPORT_ALL_VARIABLES:
KUBECONFIG = ../infra/kube_config.yaml
2021-04-25 12:30:33 +07:00
2021-05-21 18:11:33 +07:00
default: init apply
init:
2021-05-23 01:53:09 +07:00
kubectl create namespace argocd --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
2021-04-25 12:30:33 +07:00
apply:
2021-05-23 01:53:09 +07:00
kubectl --namespace argocd apply --filename .
2021-04-25 12:30:33 +07:00
delete:
2021-05-23 01:53:09 +07:00
kubectl --namespace argocd delete --filename .