golang-im聊天
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cluster_role.yaml 681 B

2 years ago
12345678910111213141516171819202122232425262728293031323334
  1. # 为pod中的服务赋予发现服务和读取配置的权限
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRole
  4. metadata:
  5. name: pod-role
  6. rules:
  7. - apiGroups:
  8. - ""
  9. resources:
  10. - pods
  11. - pods/status
  12. - services
  13. - services/status
  14. - endpoints
  15. - endpoints/status
  16. - configmaps
  17. - configmaps/status
  18. verbs:
  19. - get
  20. - list
  21. - watch
  22. ---
  23. apiVersion: rbac.authorization.k8s.io/v1
  24. kind: ClusterRoleBinding
  25. metadata:
  26. name: argo-namespaces-binding
  27. roleRef:
  28. apiGroup: rbac.authorization.k8s.io
  29. kind: ClusterRole
  30. name: pod-role
  31. subjects:
  32. - kind: ServiceAccount
  33. name: default
  34. namespace: default