Created
April 4, 2019 17:41
-
-
Save ShyamsundarR/d3dacc69b2e3312af4493b77980894dd to your computer and use it in GitHub Desktop.
rbdpligin RBAC for csi-test
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
--- | |
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