Skip to content

Commit

Permalink
Merge pull request #1286 from openintegrationhub/rabbitPersistence
Browse files Browse the repository at this point in the history
Adjusted the example rabbitmq deployment to persist data
  • Loading branch information
SvenHoeffler committed Aug 10, 2021
2 parents d185504 + 4acd438 commit acd4005
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
13 changes: 12 additions & 1 deletion platform/rabbitmq.yaml
Expand Up @@ -41,17 +41,28 @@ spec:
restartPolicy: Always
terminationGracePeriodSeconds: 30
containers:
- name: rabbitmq
- env:
- name: RABBITMQ_NODENAME
value: rabbitmq@rabbitmq-service
name: rabbitmq
image: "rabbitmq:management"
envFrom: []
livenessProbe:
tcpSocket:
port: 5672
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/rabbitmq/mnesia
name: rabbitvolume
imagePullPolicy: Always
securityContext:
privileged: false
hostname: rabbitmq-service
volumes:
- name: rabbitvolume
persistentVolumeClaim:
claimName: rabbitmq-pvc
strategy:
type: RollingUpdate
rollingUpdate:
Expand Down
15 changes: 15 additions & 0 deletions platform/volumeClaim.yaml
Expand Up @@ -28,3 +28,18 @@ spec:
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rabbitmq-pvc
namespace: oih-dev-ns
labels:
app: rabbitmq
spec:
accessModes:
- ReadWriteOnce
storageClassName: standard-rwo
resources:
requests:
storage: 1Gi

0 comments on commit acd4005

Please sign in to comment.