Cleaner KUBECONFIG

This commit is contained in:
Khue Doan 2021-05-23 01:53:09 +07:00
parent fa7d69cef8
commit d4a61512b4

View File

@ -1,13 +1,16 @@
.POSIX:
.EXPORT_ALL_VARIABLES:
KUBECONFIG = ../infra/kube_config.yaml
default: init apply
init:
kubectl create namespace argocd --dry-run=client -o yaml | kubectl --kubeconfig ../infra/kube_config.yaml apply -f -
kubectl --kubeconfig ../infra/kube_config.yaml apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
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
apply:
kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd apply --filename .
kubectl --namespace argocd apply --filename .
delete:
kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd delete --filename .
kubectl --namespace argocd delete --filename .