Adding RabbitMQ example as mentioned on #1312
This commit is contained in:
parent
944b1f7e84
commit
bb4722d6b5
|
@ -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
|
|
@ -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…
Reference in New Issue