-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
31 lines (27 loc) · 1.17 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
29
30
31
.PHONY: help all create
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " all to create a Kind cluster"
@echo " create to create a Kind cluster"
all: create
create:
@echo "Creating Kind cluster"
@kind create cluster --config cluster/kind-devcontainer.yaml
@echo "Deploy ArgoCD"
@kubectl create namespace argocd
@kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
@echo "Wait for ArgoCD to be ready..."
@kubectl wait --for=condition=available deployment/argocd-server -n argocd --timeout=300s
@echo "Configure ArgoCD"
@kubectl apply -n argocd -f .devcontainer/argocd-no-tls.yaml
@kubectl apply -n argocd -f .devcontainer/argocd-nodeport.yaml
@echo "Restart ArgoCD server..."
@kubectl -n argocd rollout restart deploy/argocd-server
@kubectl -n argocd rollout status deploy/argocd-server --timeout=300s
@echo "Create ArgoCD App of Apps..."
@kubectl -n argocd apply -f gitops/app-of-apps.yaml
@echo "ArgoCD Admin Password"
@kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
@echo ""
@echo ""
@echo "🎉 Installation Complete! 🎉"