chore: change rabbit image, add memory conf

This commit is contained in:
2022-11-17 10:00:25 +01:00
parent fe69db90e4
commit 2f1c975837
2 changed files with 19 additions and 4 deletions
+18 -3
View File
@@ -7,6 +7,14 @@ data:
RABBITMQ_VHOST: /
RABBITMQ_USERNAME: user
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rabbitmq-env-config
data:
memory.conf: |-
total_memory_available_override_value = 1GB
---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -48,7 +56,9 @@ spec:
value: "15672"
- name: RABBITMQ_DISK_FREE_LIMIT
value: '"8GiB"'
image: sparetimecoders/rabbitmq:latest
- name: RABBITMQ_CONFIG_FILES
value: /etc/rabbitmq/conf.d
image: rabbitmq:management
imagePullPolicy: Always
livenessProbe:
exec:
@@ -93,15 +103,20 @@ spec:
volumeMounts:
- name: data
mountPath: /var/lib/rabbitmq
- name: config
mountPath: /etc/rabbitmq/conf.d/20-memory.conf
subPath: memory.conf
readOnly: true
volumes:
- name: data
hostPath:
path: /data/rabbitmq
- name: config
configMap:
name: rabbitmq-env-config
dnsPolicy: ClusterFirst
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
+1 -1
View File
@@ -14,4 +14,4 @@ kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab"
kubectl apply -k .
kubectl wait --for=condition=Ready pods --all
kubectl wait --for=condition=Ready pods --all --timeout=5m