【Kubernetes】Argo

spoonysnail

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}')
阅读 90

红皇后假说
你必须尽力地不停地跑,才能使你保持在原地
76 声望
1 粉丝
0 条评论
你知道吗?

76 声望
1 粉丝
文章目录
宣传栏