argo workflows名称空间(namespace)Service Account(sa)的创建及赋予角色k8s命令脚本

kubectl -n your-namespace create sa my-sa

kubectl create clusterrole deployments-watcher --verb=list,watch --resource=deployments.apps

kubectl create clusterrolebinding deployments-watcher-clusterrole-binding --clusterrole=deployments-watcher --serviceaccount=your-namespace:my-sa

官网参考链接:
https://argoproj.github.io/argo-events/service-accounts/
https://argoproj.github.io/argo-workflows/service-accounts/

猜你喜欢

转载自blog.csdn.net/a772304419/article/details/125463642