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 694 B

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