Changed RabbitMQ to a statfulset

This commit is contained in:
florian committed 2026-03-05 09:22:04 +01:00
1 parent 2fb49f18d0
commit 6294747308
4 files changed
+37 -42

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: rabbitmq
namespace: app-notifications
spec:
serviceName: rabbitmq
replicas: 1
selector:
matchLabels:
app: rabbitmq
template:
metadata:
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq
image: rabbitmq:3.11-management
ports:
- containerPort: 5672
- containerPort: 15672
volumeMounts:
- name: rabbitmq-data
mountPath: /var/lib/rabbitmq
volumeClaimTemplates:
- metadata:
name: rabbitmq-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi