Last active
August 26, 2020 14:03
-
-
Save akhilerm/a9608e0f6066ed3d1fcbb82ccde744da to your computer and use it in GitHub Desktop.
openebs-privileged-role.yaml
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
# Define Role that allows operations on K8s pods/deployments | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: openebs-maya-operator | |
rules: | |
- apiGroups: ["*"] | |
resources: ["nodes", "nodes/proxy"] | |
verbs: ["*"] | |
- apiGroups: ["*"] | |
resources: ["namespaces", "services", "pods", "pods/exec", "deployments", "deployments/finalizers", "replicationcontrollers", "replicasets", "events", "endpoints", "configmaps", "secrets", "jobs", "cronjobs"] | |
verbs: ["*"] | |
- apiGroups: ["*"] | |
resources: ["statefulsets", "daemonsets"] | |
verbs: ["*"] | |
- apiGroups: ["*"] | |
resources: ["resourcequotas", "limitranges"] | |
verbs: ["list", "watch"] | |
- apiGroups: ["*"] | |
resources: ["ingresses", "horizontalpodautoscalers", "verticalpodautoscalers", "certificatesigningrequests"] | |
verbs: ["list", "watch"] | |
- apiGroups: ["*"] | |
resources: ["storageclasses", "persistentvolumeclaims", "persistentvolumes"] | |
verbs: ["*"] | |
- apiGroups: ["volumesnapshot.external-storage.k8s.io"] | |
resources: ["volumesnapshots", "volumesnapshotdatas"] | |
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] | |
- apiGroups: ["apiextensions.k8s.io"] | |
resources: ["customresourcedefinitions"] | |
verbs: [ "get", "list", "create", "update", "delete", "patch"] | |
- apiGroups: ["openebs.io"] | |
resources: [ "*"] | |
verbs: ["*" ] | |
- apiGroups: ["cstor.openebs.io"] | |
resources: [ "*"] | |
verbs: ["*" ] | |
- apiGroups: ["coordination.k8s.io"] | |
resources: ["leases"] | |
verbs: ["get", "watch", "list", "delete", "update", "create"] | |
- apiGroups: ["admissionregistration.k8s.io"] | |
resources: ["validatingwebhookconfigurations", "mutatingwebhookconfigurations"] | |
verbs: ["get", "create", "list", "delete", "update", "patch"] | |
- nonResourceURLs: ["/metrics"] | |
verbs: ["get"] | |
- apiGroups: ["*"] | |
resources: ["poddisruptionbudgets"] | |
verbs: ["get", "list", "create", "delete", "watch"] | |
- apiGroups: ['extensions'] | |
resources: ['podsecuritypolicies'] | |
verbs: ['use'] | |
resourceNames: | |
- openebs-privileged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment