forked from kubernetes/cloud-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keystone-rbac.yaml
32 lines (32 loc) · 699 Bytes
/
keystone-rbac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
k8s-app: k8s-keystone-auth
name: k8s-keystone-auth
rules:
# Allow k8s-keystone-auth to get k8s-auth-policy configmap
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k8s-keystone-auth
labels:
k8s-app: k8s-keystone-auth
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: k8s-keystone-auth
subjects:
- kind: ServiceAccount
name: k8s-keystone
namespace: kube-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: k8s-keystone
namespace: kube-system