Skip to content

Instantly share code, notes, and snippets.

@tahmmee
Last active July 31, 2018 15:37
Show Gist options
  • Save tahmmee/277bec10492cc27559da0413a0f1352a to your computer and use it in GitHub Desktop.
Save tahmmee/277bec10492cc27559da0413a0f1352a to your computer and use it in GitHub Desktop.
cb k8s cluster-role-template
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: couchbase-operator
rules:
- apiGroups:
- couchbase.database.couchbase.com
resources:
- couchbaseclusters
verbs:
- "*"
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- "get"
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- secrets
verbs:
- "*"
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- "get"
- "watch"
- apiGroups:
- apps
resources:
- deployments
verbs:
- "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment