Skip to content

Commit

Permalink
Size fw-headless volume according to enironment
Browse files Browse the repository at this point in the history
Will request:

- 10Gi on GHA
- 20Gi on local-dev
- 20Gi on develop
- 40Gi on staging
- 80Gi on prod
  • Loading branch information
rmunn committed Oct 31, 2024
1 parent 140de48 commit acf0a27
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/base/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storage: 80Gi
storageClassName: weekly-snapshots-retain-4 # provided by LTOps
11 changes: 11 additions & 0 deletions deployment/develop/change-allocation-size.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
labels:
app.kubernetes.io/part-of: languagedepot
spec:
resources:
requests:
storage: 20Gi
7 changes: 7 additions & 0 deletions deployment/develop/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ patches:
kind: Ingress
name: proxy
namespace: languagedepot
- target:
version: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
path: change-allocation-size.patch.yaml
11 changes: 11 additions & 0 deletions deployment/gha/change-allocation-size.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
labels:
app.kubernetes.io/part-of: languagedepot
spec:
resources:
requests:
storage: 10Gi
7 changes: 7 additions & 0 deletions deployment/gha/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ patches:
version: v1
kind: PersistentVolumeClaim
path: change-storage-class.patch.yaml
- target:
version: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
path: change-allocation-size.patch.yaml
- path: app-config.yaml

images:
Expand Down
11 changes: 11 additions & 0 deletions deployment/local-dev/change-allocation-size.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
labels:
app.kubernetes.io/part-of: languagedepot
spec:
resources:
requests:
storage: 20Gi
7 changes: 7 additions & 0 deletions deployment/local-dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ patches:
version: v1
kind: PersistentVolumeClaim
path: change-storage-class.patch.yaml
- target:
version: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
path: change-allocation-size.patch.yaml
- target:
kind: Issuer
path: delete-oauth-certs.yaml
Expand Down
11 changes: 11 additions & 0 deletions deployment/staging/change-allocation-size.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
labels:
app.kubernetes.io/part-of: languagedepot
spec:
resources:
requests:
storage: 40Gi
7 changes: 7 additions & 0 deletions deployment/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ patches:
kind: Ingress
name: proxy
namespace: languagedepot
- target:
version: v1
kind: PersistentVolumeClaim
metadata:
name: fw-headless
namespace: languagedepot
path: change-allocation-size.patch.yaml

0 comments on commit acf0a27

Please sign in to comment.