Skip to content

Commit

Permalink
Added volume claim for deployment pods to mount as shared lock volume.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Nov 14, 2024
1 parent ea4a764 commit d2e1aec
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 8 deletions.
13 changes: 9 additions & 4 deletions kustomize/overlays/prod/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ spec:
app: mapproxy-deployment
spec:
containers:
- name: mapproxy
volumeMounts:
- mountPath: /app/config
name: mapproxy-configmap
- name: mapproxy
volumeMounts:
- name: mapproxy-configmap
mountPath: /app/config
- name: mapproxy-lock-data
mountPath: /mnt/lock
volumes:
- name: mapproxy-configmap
configMap:
name: mapproxy-configmap-prod
defaultMode: 292
optional: false
- name: mapproxy-lock-data
persistentVolumeClaim:
claimName: mapproxy-lock-data-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
configMapGenerator:
- name: mapproxy-configmap
files:
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-lock-data
spec:
storageClassName: azurefile-csi-retain-zrs
volumeMode: Filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
13 changes: 9 additions & 4 deletions kustomize/overlays/uat/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ spec:
app: mapproxy-deployment
spec:
containers:
- name: mapproxy
volumeMounts:
- mountPath: /app/config
name: mapproxy-configmap
- name: mapproxy
volumeMounts:
- name: mapproxy-configmap
mountPath: /app/config
- name: mapproxy-lock-data
mountPath: /mnt/lock
volumes:
- name: mapproxy-configmap
configMap:
name: mapproxy-configmap-uat
defaultMode: 292
optional: false
- name: mapproxy-lock-data
persistentVolumeClaim:
claimName: mapproxy-lock-data-uat
1 change: 1 addition & 0 deletions kustomize/overlays/uat/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 Down
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-lock-data
spec:
storageClassName: azurefile-csi-retain
volumeMode: Filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi

0 comments on commit d2e1aec

Please sign in to comment.