seaweedfs/k8s/helm_charts2/templates/service-account.yaml

30 lines
699 B
YAML
Raw Normal View History

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