Skip to content

Instantly share code, notes, and snippets.

@sbueringer
Created January 9, 2019 18:20
Show Gist options
  • Save sbueringer/f1a3bd3ac48ccf847db40232994e5c8c to your computer and use it in GitHub Desktop.
Save sbueringer/f1a3bd3ac48ccf847db40232994e5c8c to your computer and use it in GitHub Desktop.
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: storageclasses
rules:
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["create", "update", "delete"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: user-storageclasses
subjects:
- kind: Group
name: user
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: storageclasses
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment