mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-06 09:08:26 +07:00
Cleaner KUBECONFIG
This commit is contained in:
parent
fa7d69cef8
commit
d4a61512b4
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user