Browse Source

Adding RabbitMQ example as mentioned on #1312

pull/1314/head
Tiago Katcipis 9 years ago
parent
commit
bb4722d6b5
  1. 27
      documentation/examples/contrib/kubernetes/rabbitmq/rc.yml
  2. 17
      documentation/examples/contrib/kubernetes/rabbitmq/svc.yml

27
documentation/examples/contrib/kubernetes/rabbitmq/rc.yml

@ -0,0 +1,27 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: rabbitmq
spec:
replicas: 1
selector:
app: rabbitmq
template:
metadata:
name: rabbitmq
labels:
app: rabbitmq
spec:
containers:
- image: rabbitmq:3.5.4-management
name: rabbitmq
ports:
- containerPort: 5672
name: service
- containerPort: 15672
name: management
- image: kbudde/rabbitmq-exporter
name: rabbitmq-exporter
ports:
- containerPort: 9090
name: exporter

17
documentation/examples/contrib/kubernetes/rabbitmq/svc.yml

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: rabbitmq
labels:
name: rabbitmq
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
spec:
ports:
- port: 9090
name: exporter
targetPort: exporter
protocol: TCP
selector:
app: rabbitmq
Loading…
Cancel
Save