83 lines
2.1 KiB
YAML
83 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: taiga-rabbitmq
|
|
namespace: {{ .namespace }}
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
component: rabbitmq
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: rabbitmq
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: false
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: rabbitmq
|
|
image: rabbitmq:3.12-alpine
|
|
ports:
|
|
- name: amqp
|
|
containerPort: 5672
|
|
protocol: TCP
|
|
env:
|
|
- name: RABBITMQ_DEFAULT_USER
|
|
value: taiga
|
|
- name: RABBITMQ_DEFAULT_PASS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: taiga-secrets
|
|
key: rabbitmqPassword
|
|
- name: RABBITMQ_DEFAULT_VHOST
|
|
value: taiga
|
|
- name: RABBITMQ_ERLANG_COOKIE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: taiga-secrets
|
|
key: rabbitmqErlangCookie
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- name: taiga-rabbitmq-data
|
|
mountPath: /var/lib/rabbitmq
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- rabbitmq-diagnostics
|
|
- -q
|
|
- ping
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- rabbitmq-diagnostics
|
|
- -q
|
|
- check_port_connectivity
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|
|
timeoutSeconds: 10
|
|
failureThreshold: 3
|
|
securityContext:
|
|
readOnlyRootFilesystem: false
|
|
volumes:
|
|
- name: taiga-rabbitmq-data
|
|
persistentVolumeClaim:
|
|
claimName: taiga-rabbitmq-data
|
|
restartPolicy: Always
|