Skip to content

Commit 05bd47c

Browse files
committed
chore: add rabbitmq vol claim template
1 parent 24309c2 commit 05bd47c

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

k8s/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace: datatracker
2-
namePrefix: datatracker-
2+
namePrefix: dt-
33
configMapGenerator:
44
- name: files-cfgmap
55
files:

k8s/rabbitmq.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ spec:
7676
runAsGroup: 101
7777
volumes:
7878
- name: rabbitmq-data
79-
# TODO: TODO TODO
79+
persistentVolumeClaim:
80+
claimName: "rabbitmq-data-vol"
8081
- name: rabbitmq-tmp
8182
emptyDir:
8283
sizeLimit: "50Mi"
@@ -86,6 +87,16 @@ spec:
8687
dnsPolicy: ClusterFirst
8788
restartPolicy: Always
8889
terminationGracePeriodSeconds: 30
90+
volumeClaimTemplates:
91+
- metadata:
92+
name: rabbitmq-data-vol
93+
spec:
94+
accessModes:
95+
- ReadWriteOnce
96+
resources:
97+
requests:
98+
storage: 8Gi
99+
# storageClassName: ""
89100
---
90101
apiVersion: v1
91102
kind: ConfigMap

0 commit comments

Comments
 (0)