Skip to content

Commit

Permalink
Simpler way to handle fw-headless volume size
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
rmunn committed Oct 31, 2024
1 parent bc377eb commit 53c7cb3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deployment/production/fw-headless-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hg-repos
namespace: languagedepot
spec:
resources:
requests:
storage: 150Gi
1 change: 1 addition & 0 deletions deployment/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions deployment/staging/fw-headless-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
spec:
resources:
requests:
storage: 30Gi
1 change: 1 addition & 0 deletions deployment/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53c7cb3

Please sign in to comment.