ci: give rabbitmq a persistent volume claim (#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
This commit is contained in:
parent
c987bacc95
commit
f1e6c3729f
|
@ -68,14 +68,13 @@ IDSUBMIT_REPOSITORY_PATH = INTERNET_DRAFT_PATH
|
||||||
NOMCOM_PUBLIC_KEYS_DIR = "data/nomcom_keys/public_keys/"
|
NOMCOM_PUBLIC_KEYS_DIR = "data/nomcom_keys/public_keys/"
|
||||||
SLIDE_STAGING_PATH = "/test/staging/"
|
SLIDE_STAGING_PATH = "/test/staging/"
|
||||||
|
|
||||||
# todo check that de-gfm is in place
|
|
||||||
DE_GFM_BINARY = "/usr/local/bin/de-gfm"
|
DE_GFM_BINARY = "/usr/local/bin/de-gfm"
|
||||||
|
|
||||||
# OIDC configuration
|
# OIDC configuration
|
||||||
SITE_URL = os.environ.get("OIDC_SITE_URL")
|
SITE_URL = os.environ.get("OIDC_SITE_URL")
|
||||||
|
|
||||||
# todo: parameterize memcached url in settings.py
|
# todo: parameterize memcached url in settings.py
|
||||||
MEMCACHED_HOST = os.environ.get(f"MEMCACHED_SERVICE_HOST", "127.0.0.1")
|
MEMCACHED_HOST = os.environ.get("MEMCACHED_SERVICE_HOST", "127.0.0.1")
|
||||||
MEMCACHED_PORT = os.environ.get("MEMCACHED_SERVICE_PORT", "11211")
|
MEMCACHED_PORT = os.environ.get("MEMCACHED_SERVICE_PORT", "11211")
|
||||||
from ietf import __version__
|
from ietf import __version__
|
||||||
CACHES = {
|
CACHES = {
|
||||||
|
|
12
helm/templates/persistentvolumeclaims.yaml
Normal file
12
helm/templates/persistentvolumeclaims.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: "rabbitmq-data-claim"
|
||||||
|
spec:
|
||||||
|
# storageClassName: "local"
|
||||||
|
# volumeName: ""
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 8Gi
|
|
@ -37,7 +37,7 @@ datatracker:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
# tag: "v1.1.0"
|
# tag: "v1.1.0"
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
@ -457,6 +457,9 @@ rabbitmq:
|
||||||
|
|
||||||
# Additional volumes on the output Deployment definition.
|
# Additional volumes on the output Deployment definition.
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: "rabbitmq-data"
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: "rabbitmq-data-claim"
|
||||||
- name: "rabbitmq-config"
|
- name: "rabbitmq-config"
|
||||||
configMap:
|
configMap:
|
||||||
name: "rabbitmq-configmap"
|
name: "rabbitmq-configmap"
|
||||||
|
@ -467,6 +470,8 @@ rabbitmq:
|
||||||
|
|
||||||
# Additional volumeMounts on the output Deployment definition.
|
# Additional volumeMounts on the output Deployment definition.
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: "rabbitmq-data"
|
||||||
|
mountPath: "/var/lib/rabbitmq/mnesia"
|
||||||
- name: "rabbitmq-config"
|
- name: "rabbitmq-config"
|
||||||
mountPath: "/etc/rabbitmq"
|
mountPath: "/etc/rabbitmq"
|
||||||
# - name: foo
|
# - name: foo
|
||||||
|
|
Loading…
Reference in a new issue