1234567891011121314151617181920212223242526272829 |
- #hack for delete pod master after migration
- ---
- kind: ClusterRole
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: seaweedfs-rw-cr
- rules:
- - apiGroups: [""]
- resources: ["pods"]
- verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- ---
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: seaweedfs-rw-sa
- namespace: {{ .Release.Namespace }}
- ---
- kind: ClusterRoleBinding
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: system:serviceaccount:seaweedfs-rw-sa:default
- subjects:
- - kind: ServiceAccount
- name: seaweedfs-rw-sa
- namespace: {{ .Release.Namespace }}
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: seaweedfs-rw-cr
|