Skip to content

Instantly share code, notes, and snippets.

@rootfs
Created May 29, 2018 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rootfs/dd8e2f3bb8f7ef68e6a64e9efa0d8bb6 to your computer and use it in GitHub Desktop.
Save rootfs/dd8e2f3bb8f7ef68e6a64e9efa0d8bb6 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: azure-file-ns
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: system:controller:persistent-volume-binder
namespace: azure-file-ns
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["create", "get", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: system:controller:persistent-volume-binder
namespace: azure-file-ns
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: system:controller:persistent-volume-binder
subjects:
- kind: ServiceAccount
name: persistent-volume-binder
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment