45 lines
946 B
YAML
45 lines
946 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: rabbitmq
|
|
labels:
|
|
name: rabbitmq
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: rabbitmq
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: rabbitmq
|
|
annotations:
|
|
prometheus.io/scrape: "false"
|
|
spec:
|
|
containers:
|
|
- name: rabbitmq
|
|
image: rabbitmq:3.6.8-management
|
|
ports:
|
|
- containerPort: 15672
|
|
name: management
|
|
- containerPort: 5672
|
|
name: rabbitmq
|
|
securityContext:
|
|
capabilities:
|
|
drop:
|
|
- all
|
|
add:
|
|
- CHOWN
|
|
- SETGID
|
|
- SETUID
|
|
- DAC_OVERRIDE
|
|
readOnlyRootFilesystem: true
|
|
- name: rabbitmq-exporter
|
|
image: kbudde/rabbitmq-exporter
|
|
ports:
|
|
- containerPort: 9090
|
|
name: exporter
|
|
nodeSelector:
|
|
beta.kubernetes.io/os: linux
|