argo.sh
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# RUN DOCKER DEMO
|
||||
|
||||
ADD a clean argo
|
||||
```
|
||||
./run_argo.sh
|
||||
```
|
||||
Verify with `kubectl get pods -n argo -w` -> all server are running and 1/1
|
||||
Any problem with this, can be a top problem from your k3s or k8s (FIX IT BEFORE)
|
||||
|
||||
```
|
||||
sudo ./clone_opencloud_microservices.sh
|
||||
cd ./docker
|
||||
|
||||
19
run_argo.sh
Executable file
19
run_argo.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
kubectl get pods -n kube-system -o name | xargs -n1 kubectl delete --force --grace-period=0 -n kube-system
|
||||
|
||||
NAMESPACE="argo"
|
||||
ARGO_MANIFEST="https://raw.githubusercontent.com/argoproj/argo-workflows/stable/manifests/install.yaml"
|
||||
|
||||
echo "=== Create namespace if missing ==="
|
||||
kubectl get ns $NAMESPACE >/dev/null 2>&1 || kubectl create ns $NAMESPACE
|
||||
|
||||
echo "=== Delete all dangling pods in $NAMESPACE ==="
|
||||
kubectl delete pod --all -n $NAMESPACE --ignore-not-found
|
||||
|
||||
echo "=== Apply Argo manifests ==="
|
||||
kubectl apply -n $NAMESPACE -f $ARGO_MANIFEST
|
||||
|
||||
echo "=== All done! ==="
|
||||
kubectl get pods -n $NAMESPACE
|
||||
Reference in New Issue
Block a user