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.

28 lines
708 B

  1. #hack for delete pod master after migration
  2. ---
  3. kind: ClusterRole
  4. apiVersion: rbac.authorization.k8s.io/v1beta1
  5. metadata:
  6. name: seaweefds-rw-cr
  7. rules:
  8. - apiGroups: [""]
  9. resources: ["pods"]
  10. verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
  11. ---
  12. apiVersion: v1
  13. kind: ServiceAccount
  14. metadata:
  15. name: seaweefds-rw-sa
  16. namespace: {{ .Release.Namespace }}
  17. ---
  18. kind: ClusterRoleBinding
  19. apiVersion: rbac.authorization.k8s.io/v1beta1
  20. metadata:
  21. name: system:serviceaccount:seaweefds-rw-sa:default
  22. subjects:
  23. - kind: ServiceAccount
  24. name: seaweefds-rw-sa
  25. namespace: {{ .Release.Namespace }}
  26. roleRef:
  27. apiGroup: rbac.authorization.k8s.io
  28. kind: ClusterRole
  29. name: seaweefds-rw-cr