2020-03-03 07:56:39 +00:00
|
|
|
#hack for delete pod master after migration
|
|
|
|
---
|
|
|
|
kind: ClusterRole
|
2021-09-28 12:08:54 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2020-03-03 07:56:39 +00:00
|
|
|
metadata:
|
|
|
|
name: seaweefds-rw-cr
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["pods"]
|
|
|
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: seaweefds-rw-sa
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
2021-09-28 12:08:54 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2020-03-03 07:56:39 +00:00
|
|
|
metadata:
|
|
|
|
name: system:serviceaccount:seaweefds-rw-sa:default
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: seaweefds-rw-sa
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
2021-09-28 12:08:54 +00:00
|
|
|
name: seaweefds-rw-cr
|