mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
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
|
||||
@ -28,8 +26,7 @@ echo 'App is starting...'
|
||||
kubectl wait --namespace dev \
|
||||
--for=condition=ready pod \
|
||||
--selector=app.kubernetes.io/name=app-deployment \
|
||||
--timeout=300s \
|
||||
1>/dev/null 2>/dev/null
|
||||
--timeout=300s
|
||||
echo 'App imported in ArgoCD'
|
||||
|
||||
TRAEFIK_IP=$(kubectl get service -n kube-system traefik -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
SCRIPT_PATH="$(realpath "${BASH_SOURCE[0]}")"
|
||||
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
|
||||
|
||||
kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
kubectl delete -n argocd -f ../confs/argocd-app.yml
|
||||
kubectl delete -n argocd -f "$SCRIPT_DIR/../confs/argocd-app.yml"
|
||||
kubectl delete namespace argocd
|
||||
kubectl delete namespace dev
|
||||
k3d cluster delete inception-of-things
|
||||
k3d cluster delete inception-of-things
|
||||
|
||||
Reference in New Issue
Block a user