seaweedfs-operator/deploy/role.yaml
HarrisonZhu e7b1438ad4 feat(misc): init project use operator-sdk
init project use operator-sdk
2019-10-28 17:35:30 +08:00

55 lines
900 B
YAML

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: seaweedfs-operator
rules:
- apiGroups:
- ""
resources:
- pods
- services
- services/finalizers
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- "*"
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- "get"
- "create"
- apiGroups:
- apps
resources:
- deployments/finalizers
resourceNames:
- seaweedfs-operator
verbs:
- "update"
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
verbs:
- get