rbac.yaml 977 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. kind: ServiceAccount
  2. apiVersion: v1
  3. metadata:
  4. namespace: chaos-mesh
  5. name: account-cluster-manager-kbpcu
  6. ---
  7. apiVersion: v1
  8. kind: Secret
  9. metadata:
  10. name: chaos-mesh-dashboard
  11. namespace: chaos-mesh
  12. annotations:
  13. kubernetes.io/service-account.name: "account-cluster-manager-kbpcu"
  14. type: kubernetes.io/service-account-token
  15. ---
  16. kind: ClusterRole
  17. apiVersion: rbac.authorization.k8s.io/v1
  18. metadata:
  19. name: role-cluster-manager-kbpcu
  20. rules:
  21. - apiGroups: [""]
  22. resources: ["pods", "namespaces"]
  23. verbs: ["get", "watch", "list"]
  24. - apiGroups: ["chaos-mesh.org"]
  25. resources: ["*"]
  26. verbs: ["get", "list", "watch", "create", "delete", "patch", "update"]
  27. ---
  28. kind: ClusterRoleBinding
  29. apiVersion: rbac.authorization.k8s.io/v1
  30. metadata:
  31. name: bind-cluster-manager-kbpcu
  32. subjects:
  33. - kind: ServiceAccount
  34. name: account-cluster-manager-kbpcu
  35. namespace: chaos-mesh
  36. roleRef:
  37. kind: ClusterRole
  38. name: role-cluster-manager-kbpcu
  39. apiGroup: rbac.authorization.k8s.io