From 53c7cb338517ec6e7d210ee3446d450fe81a4d3a Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Thu, 31 Oct 2024 10:47:23 +0700 Subject: [PATCH] Simpler way to handle fw-headless volume size Now we allocate 10 GiB everywhere, except 20 on staging and 150 GiB on production (similar size to hg-repos volume since we could potentially end up with copies of everything from hg-repos). --- deployment/production/fw-headless-volume.yaml | 9 +++++++++ deployment/production/kustomization.yaml | 1 + deployment/staging/fw-headless-volume.yaml | 9 +++++++++ deployment/staging/kustomization.yaml | 1 + 4 files changed, 20 insertions(+) create mode 100644 deployment/production/fw-headless-volume.yaml create mode 100644 deployment/staging/fw-headless-volume.yaml diff --git a/deployment/production/fw-headless-volume.yaml b/deployment/production/fw-headless-volume.yaml new file mode 100644 index 000000000..6ff2a11c1 --- /dev/null +++ b/deployment/production/fw-headless-volume.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: hg-repos + namespace: languagedepot +spec: + resources: + requests: + storage: 150Gi diff --git a/deployment/production/kustomization.yaml b/deployment/production/kustomization.yaml index f35c39514..e79de016c 100644 --- a/deployment/production/kustomization.yaml +++ b/deployment/production/kustomization.yaml @@ -9,6 +9,7 @@ resources: patches: - path: lexbox-deployment.patch.yaml - path: app-config.yaml + - path: fw-headless-volume.yaml - path: hg-repos-volume.yaml - path: hg-deployment.yaml - path: ingress-config-prod.yaml diff --git a/deployment/staging/fw-headless-volume.yaml b/deployment/staging/fw-headless-volume.yaml new file mode 100644 index 000000000..97bb99558 --- /dev/null +++ b/deployment/staging/fw-headless-volume.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: fw-headless + namespace: languagedepot +spec: + resources: + requests: + storage: 30Gi diff --git a/deployment/staging/kustomization.yaml b/deployment/staging/kustomization.yaml index 0d651c3c8..c56c8d483 100644 --- a/deployment/staging/kustomization.yaml +++ b/deployment/staging/kustomization.yaml @@ -7,6 +7,7 @@ resources: components: - ../init-repos patches: + - path: fw-headless-volume.yaml - path: fw-headless-deployment.patch.yaml - path: lexbox-deployment.patch.yaml - path: app-config.yaml