You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
|
6 years ago
|
apiVersion: v1
|
||
|
|
kind: ServiceAccount
|
||
|
|
metadata:
|
||
|
|
name: nfs-client-provisioner
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
kind: ClusterRole
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
metadata:
|
||
|
|
name: nfs-client-provisioner-runner
|
||
|
|
rules:
|
||
|
|
- apiGroups: [""]
|
||
|
|
resources: ["persistentvolumes"]
|
||
|
|
verbs: ["get", "list", "watch", "create", "delete"]
|
||
|
|
- apiGroups: [""]
|
||
|
|
resources: ["persistentvolumeclaims"]
|
||
|
|
verbs: ["get", "list", "watch", "update"]
|
||
|
|
- apiGroups: ["storage.k8s.io"]
|
||
|
|
resources: ["storageclasses"]
|
||
|
|
verbs: ["get", "list", "watch"]
|
||
|
|
- apiGroups: [""]
|
||
|
|
resources: ["events"]
|
||
|
|
verbs: ["list", "watch", "create", "update", "patch"]
|
||
|
|
- apiGroups: [""]
|
||
|
|
resources: ["endpoints"]
|
||
|
|
verbs: ["create", "delete", "get", "list", "watch", "patch", "update"]
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
kind: ClusterRoleBinding
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
metadata:
|
||
|
|
name: run-nfs-client-provisioner
|
||
|
|
subjects:
|
||
|
|
- kind: ServiceAccount
|
||
|
|
name: nfs-client-provisioner
|
||
|
|
namespace: default
|
||
|
|
roleRef:
|
||
|
|
kind: ClusterRole
|
||
|
|
name: nfs-client-provisioner-runner
|
||
|
|
apiGroup: rbac.authorization.k8s.io
|