mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
add: argocd installer & port forwarding
This commit is contained in:
14
p3/scripts/argo-install.sh
Executable file
14
p3/scripts/argo-install.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
k3d cluster create inception-of-things
|
||||
kubectl create namespace argocd
|
||||
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
echo ArgoCD is starting...
|
||||
kubectl wait --namespace argocd \
|
||||
--for=condition=ready pod \
|
||||
--selector=app.kubernetes.io/name=argocd-server \
|
||||
--timeout=300s \
|
||||
1>/dev/null 2>/dev/null
|
||||
kubectl port-forward svc/argocd-server -n argocd 8080:443 1>/dev/null &
|
||||
echo 'ArgoCD is running (http://127.0.0.1:8080)'
|
||||
echo login=admin password=\'$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d)\'
|
||||
3
p3/scripts/uninstall.sh
Executable file
3
p3/scripts/uninstall.sh
Executable file
@ -0,0 +1,3 @@
|
||||
kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
kubectl delete namespace argocd
|
||||
k3d cluster delete inception-of-things
|
||||
Reference in New Issue
Block a user