Adding RabbitMQ example as mentioned on #1312

This commit is contained in:
Tiago Katcipis 2016-01-12 20:59:37 -02:00
parent 944b1f7e84
commit bb4722d6b5
2 changed files with 44 additions and 0 deletions

View File

@ -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

View File

@ -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