Created
October 1, 2019 05:53
-
-
Save utkarshmani1997/c638aa8c73c7d1ef6f6e4715cae3d2d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: openebs-nfs-provisioner-runner | |
rules: | |
- apiGroups: [""] | |
resources: ["persistentvolumes"] | |
verbs: ["get", "list", "watch", "create", "delete"] | |
- apiGroups: [""] | |
resources: ["persistentvolumeclaims"] | |
verbs: ["get", "list", "watch", "update"] | |
- apiGroups: ["storage.k8s.io"] | |
resources: ["storageclasses"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: [""] | |
resources: ["events"] | |
verbs: ["create", "update", "patch"] | |
- apiGroups: [""] | |
resources: ["services", "endpoints"] | |
verbs: ["get"] | |
- apiGroups: ["extensions"] | |
resources: ["podsecuritypolicies"] | |
resourceNames: ["nfs-provisioner"] | |
verbs: ["use"] | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: openebs-run-nfs-provisioner | |
subjects: | |
- kind: ServiceAccount | |
name: openebs-nfs-provisioner | |
# replace with namespace where provisioner is deployed | |
namespace: default | |
roleRef: | |
kind: ClusterRole | |
name: openebs-nfs-provisioner-runner | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: openebs-leader-locking-nfs-provisioner | |
rules: | |
- apiGroups: [""] | |
resources: ["endpoints"] | |
verbs: ["get", "list", "watch", "create", "update", "patch"] | |
--- | |
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: openebs-leader-locking-nfs-provisioner | |
subjects: | |
- kind: ServiceAccount | |
name: openebs-nfs-provisioner | |
# replace with namespace where provisioner is deployed | |
roleRef: | |
kind: Role | |
name: openebs-leader-locking-nfs-provisioner | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment