Forked from chukaofili/digitalocean-flexplugin-rbac.yml
Created
June 30, 2018 15:11
-
-
Save JonathanBowker/fc6a8c8bb19480b8cf5dd2751a740528 to your computer and use it in GitHub Desktop.
DigitalOcean rbac flexplugin deploy
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: digitalocean-provisioner | |
namespace: kube-system | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: digitalocean-provisioner | |
namespace: kube-system | |
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"] | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: digitalocean-provisioner | |
namespace: kube-system | |
subjects: | |
- kind: ServiceAccount | |
name: digitalocean-provisioner | |
namespace: kube-system | |
roleRef: | |
kind: ClusterRole | |
name: digitalocean-provisioner | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: digitalocean-provisioner | |
namespace: kube-system | |
rules: | |
- apiGroups: [""] | |
resources: ["secrets"] | |
verbs: ["get"] | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: RoleBinding | |
metadata: | |
name: digitalocean-provisioner | |
namespace: kube-system | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: Role | |
name: digitalocean-provisioner | |
subjects: | |
- kind: ServiceAccount | |
name: digitalocean-provisioner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment