Skip to content

Commit

Permalink
Tweak Kustomize resources: use different PVC storage class between UA…
Browse files Browse the repository at this point in the history
…T and prod.
  • Loading branch information
ropable committed May 21, 2024
1 parent 40f0839 commit 9a121f9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
5 changes: 2 additions & 3 deletions kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Deployment
metadata:
name: mapproxy-deployment
spec:
replicas: 2
strategy:
type: RollingUpdate
template:
Expand All @@ -17,8 +16,8 @@ spec:
value: "Australia/Perth"
resources:
requests:
memory: "128Mi"
cpu: "10m"
memory: "200Mi"
cpu: "50m"
limits:
memory: "2Gi"
cpu: "1000m"
Expand Down
2 changes: 1 addition & 1 deletion kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- pvc.yaml
- deployment_hpa.yaml
- service.yaml
2 changes: 2 additions & 0 deletions kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
- ../../base
- ingress.yaml
- pdb.yaml
- pvc.yaml
configMapGenerator:
- name: mapproxy-configmap
files:
Expand All @@ -15,6 +16,7 @@ labels:
variant: prod
patches:
- path: deployment_patch.yaml
- path: deployment_hpa_patch.yaml
- path: service_patch.yaml
images:
- name: ghcr.io/dbca-wa/mapproxy
Expand Down
File renamed without changes.
10 changes: 6 additions & 4 deletions kustomize/overlays/uat/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ resources:
- ../../base
- ingress.yaml
- pdb.yaml
- pvc.yaml
configMapGenerator:
- name: mapproxy-configmap
files:
- mapproxy.yaml
labels:
- includeSelectors: true
pairs:
variant: uat
patches:
- path: deployment_patch.yaml
- path: deployment_hpa_patch.yaml
- path: service_patch.yaml
configMapGenerator:
- name: mapproxy-configmap
files:
- mapproxy.yaml
12 changes: 12 additions & 0 deletions kustomize/overlays/uat/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mapproxy-cache-data
spec:
storageClassName: azurefile-csi-premium
volumeMode: Filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 32Gi

0 comments on commit 9a121f9

Please sign in to comment.