Skip to content

Commit

Permalink
Add cache data PVC to prod overlay.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Jan 11, 2024
1 parent acf1deb commit 336f61e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
30 changes: 23 additions & 7 deletions kustomize/overlays/prod/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,30 @@ spec:
labels:
app: mapproxy-prod
spec:
initContainers:
- name: chown-pvc
image: busybox
command:
- /bin/chown
- -R
- "10001:10001"
- /cache_data
volumeMounts:
- mountPath: /cache_data
name: mapproxy-cache
containers:
- name: mapproxy
volumeMounts:
- mountPath: /app/config
name: mapproxy-configmap
- mountPath: /app/config
name: mapproxy-configmap
- mountPath: /cache_data
name: mapproxy-cache
volumes:
- configMap:
name: mapproxy-configmap-prod
defaultMode: 292
optional: false
name: mapproxy-configmap
- name: mapproxy-configmap
configMap:
name: mapproxy-configmap-prod
defaultMode: 292
optional: false
- name: mapproxy-cache
persistentVolumeClaim:
claimName: mapproxy-cache-prod
1 change: 1 addition & 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
labels:
- includeSelectors: true
pairs:
Expand Down
12 changes: 12 additions & 0 deletions kustomize/overlays/prod/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mapproxy-cache
spec:
storageClassName: managed-csi-retain
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4Gi

0 comments on commit 336f61e

Please sign in to comment.