Skip to content

Commit f1e6c37

Browse files
jennifer-richardsNGPixel
authored andcommitted
ci: give rabbitmq a persistent volume claim (ietf-tools#7235)
* ci: give rabbitmq a persistent volume claim This relies on minikube's dynamic creation of persistent volumes - expect changes likely needed for production deployment. * ci: that's not an f-string * ci: todo is todone
1 parent c987bac commit f1e6c37

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

helm/settings_local.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,13 @@
6868
NOMCOM_PUBLIC_KEYS_DIR = "data/nomcom_keys/public_keys/"
6969
SLIDE_STAGING_PATH = "/test/staging/"
7070

71-
# todo check that de-gfm is in place
7271
DE_GFM_BINARY = "/usr/local/bin/de-gfm"
7372

7473
# OIDC configuration
7574
SITE_URL = os.environ.get("OIDC_SITE_URL")
7675

7776
# todo: parameterize memcached url in settings.py
78-
MEMCACHED_HOST = os.environ.get(f"MEMCACHED_SERVICE_HOST", "127.0.0.1")
77+
MEMCACHED_HOST = os.environ.get("MEMCACHED_SERVICE_HOST", "127.0.0.1")
7978
MEMCACHED_PORT = os.environ.get("MEMCACHED_SERVICE_PORT", "11211")
8079
from ietf import __version__
8180
CACHES = {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: "rabbitmq-data-claim"
5+
spec:
6+
# storageClassName: "local"
7+
# volumeName: ""
8+
accessModes:
9+
- ReadWriteOnce
10+
resources:
11+
requests:
12+
storage: 8Gi

helm/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ datatracker:
3737
pullPolicy: IfNotPresent
3838
# Overrides the image tag whose default is the chart appVersion.
3939
# tag: "v1.1.0"
40-
40+
4141
imagePullSecrets: []
4242
nameOverride: ""
4343
fullnameOverride: ""
@@ -457,6 +457,9 @@ rabbitmq:
457457

458458
# Additional volumes on the output Deployment definition.
459459
volumes:
460+
- name: "rabbitmq-data"
461+
persistentVolumeClaim:
462+
claimName: "rabbitmq-data-claim"
460463
- name: "rabbitmq-config"
461464
configMap:
462465
name: "rabbitmq-configmap"
@@ -467,6 +470,8 @@ rabbitmq:
467470

468471
# Additional volumeMounts on the output Deployment definition.
469472
volumeMounts:
473+
- name: "rabbitmq-data"
474+
mountPath: "/var/lib/rabbitmq/mnesia"
470475
- name: "rabbitmq-config"
471476
mountPath: "/etc/rabbitmq"
472477
# - name: foo

0 commit comments

Comments
 (0)