乐趣区

关于kubernetes:KubernetesArgo

argo 装置

kubectl create ns argo

kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo-workflows/stable/manifests/quick-start-postgres.yaml

kubectl create clusterrolebinding test-cluster-admin-binding --clusterrole=cluster-admin --user=test@test.com

kubectl -n argo port-forward deployment/argo-server 2746:2746

mkdir argo;cd argo
curl -svLO https://github.com/argoproj/argo-workflows/releases/download/v3.1.1/argo-linux-amd64.gz

gunzip argo-linux-amd64.gz

chmod +x argo-linux-amd64

mv ./argo-linux-amd64 /usr/local/bin/argo

argo admin 配置

kubectl create role argo-admin --verb=list,update --resource=workflows.argoproj.io 
kubectl create sa argo-admin
kubectl create rolebinding argo-admin --role=argo-admin --serviceaccount=argo:argo-admin

## 获取 secret
SECRET=$(kubectl get sa argo-admin -o=jsonpath='{.secrets[0].name}')
退出移动版