-
Notifications
You must be signed in to change notification settings - Fork 0
/
rabbit.yml
36 lines (35 loc) · 957 Bytes
/
rabbit.yml
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
33
34
35
36
---
apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
name: rabbitmq
namespace: apollos-crib
spec:
replicas: 1
rabbitmq:
additionalPlugins:
- rabbitmq_management
- rabbitmq_prometheus
- rabbitmq_auth_backend_http
- rabbitmq_mqtt
additionalConfig: |
auth_backends.1 = internal
auth_backends.2 = rabbit_auth_backend_http
auth_http.http_method = post
auth_http.user_path = http://apollos-crib-hermes-svc:80/auth/user
auth_http.vhost_path = http://apollos-crib-hermes-svc:80/auth/vhost
auth_http.resource_path = http://apollos-crib-hermes-svc:80/auth/resource
auth_http.topic_path = http://apollos-crib-hermes-svc:80/auth/topic
---
apiVersion: v1
kind: Service
metadata:
name: apollos-crib-mqtt-svc
namespace: apollos-crib
spec:
ports:
- port: 1883
targetPort: 1883
protocol: TCP
selector:
app.kubernetes.io/name: rabbitmq