mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-10 15:59:47 +07:00
Cleaner KUBECONFIG
This commit is contained in:
@ -1,13 +1,16 @@
|
|||||||
.POSIX:
|
.POSIX:
|
||||||
|
.EXPORT_ALL_VARIABLES:
|
||||||
|
|
||||||
|
KUBECONFIG = ../infra/kube_config.yaml
|
||||||
|
|
||||||
default: init apply
|
default: init apply
|
||||||
|
|
||||||
init:
|
init:
|
||||||
kubectl create namespace argocd --dry-run=client -o yaml | kubectl --kubeconfig ../infra/kube_config.yaml apply -f -
|
kubectl create namespace argocd --dry-run=client -o yaml | kubectl apply -f -
|
||||||
kubectl --kubeconfig ../infra/kube_config.yaml apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||||
|
|
||||||
apply:
|
apply:
|
||||||
kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd apply --filename .
|
kubectl --namespace argocd apply --filename .
|
||||||
|
|
||||||
delete:
|
delete:
|
||||||
kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd delete --filename .
|
kubectl --namespace argocd delete --filename .
|
||||||
|
Reference in New Issue
Block a user