074dc46c8d296c5261539ab0ce4b1ddd1e4ad0d1
[eliot.git] / blueprints / iotgateway / playbooks / roles / rabbitmq / files / common / rbac.yaml
1 ---
2 apiVersion: v1
3 kind: ServiceAccount
4 metadata:
5   name: rabbitmq
6   namespace: default
7 ---
8 kind: Role
9 apiVersion: rbac.authorization.k8s.io/v1beta1
10 metadata:
11   name: rabbitmq-peer-discovery-rbac
12   namespace: default
13 rules:
14   - apiGroups: [""]
15     resources: ["endpoints"]
16     verbs: ["get"]
17 ---
18 kind: RoleBinding
19 apiVersion: rbac.authorization.k8s.io/v1beta1
20 metadata:
21   name: rabbitmq-peer-discovery-rbac
22   namespace: default
23 subjects:
24   - kind: ServiceAccount
25     name: rabbitmq
26 roleRef:
27   apiGroup: rbac.authorization.k8s.io
28   kind: Role
29   name: rabbitmq-peer-discovery-rbac