Skip to content

Instantly share code, notes, and snippets.

@ShyamsundarR
Created April 4, 2019 17:41
Show Gist options
  • Save ShyamsundarR/d3dacc69b2e3312af4493b77980894dd to your computer and use it in GitHub Desktop.
Save ShyamsundarR/d3dacc69b2e3312af4493b77980894dd to your computer and use it in GitHub Desktop.
rbdpligin RBAC for csi-test
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rbdplugi-test-sa
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rbdplugi-test-cr
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "create", "delete"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rbdplugi-test-crb
subjects:
- kind: ServiceAccount
name: rbdplugi-test-sa
namespace: default
roleRef:
kind: ClusterRole
name: rbdplugi-test-cr
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment