【Kubernetes】Argo

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 [email protected]

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}')

你可能感兴趣的:(kubernetes)