Skip to content

Commit

Permalink
Refactor Kustomize resources: remove PVC, init container (using Azure…
Browse files Browse the repository at this point in the history
… blob as cache store).
  • Loading branch information
ropable committed May 24, 2024
1 parent 9f8d8b2 commit 733940e
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 60 deletions.
5 changes: 3 additions & 2 deletions kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ spec:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /tmp
name: tmpfs-ram
- name: tmpfs-ram
mountPath: /tmp
subPath: cache_data
volumes:
- name: tmpfs-ram
emptyDir:
Expand Down
16 changes: 0 additions & 16 deletions kustomize/overlays/prod/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,14 @@ spec:
labels:
app: mapproxy-deployment
spec:
initContainers:
- name: chown-pvc
image: busybox
command:
- /bin/chown
- -R
- "10001:10001"
- /cache_data
volumeMounts:
- mountPath: /cache_data
name: mapproxy-cache-data
containers:
- name: mapproxy
volumeMounts:
- mountPath: /app/config
name: mapproxy-configmap
- mountPath: /cache_data
name: mapproxy-cache-data
volumes:
- name: mapproxy-configmap
configMap:
name: mapproxy-configmap-prod
defaultMode: 292
optional: false
- name: mapproxy-cache-data
persistentVolumeClaim:
claimName: mapproxy-cache-data-prod
1 change: 0 additions & 1 deletion kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ resources:
- ../../base
- ingress.yaml
- pdb.yaml
- pvc.yaml
configMapGenerator:
- name: mapproxy-configmap
files:
Expand Down
12 changes: 0 additions & 12 deletions kustomize/overlays/prod/pvc.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions kustomize/overlays/uat/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,14 @@ spec:
labels:
app: mapproxy-deployment
spec:
initContainers:
- name: chown-pvc
image: busybox
command:
- /bin/chown
- -R
- "10001:10001"
- /cache_data
volumeMounts:
- mountPath: /cache_data
name: mapproxy-cache-data
containers:
- name: mapproxy
volumeMounts:
- mountPath: /app/config
name: mapproxy-configmap
- mountPath: /cache_data
name: mapproxy-cache-data
volumes:
- name: mapproxy-configmap
configMap:
name: mapproxy-configmap-uat
defaultMode: 292
optional: false
- name: mapproxy-cache-data
persistentVolumeClaim:
claimName: mapproxy-cache-data-uat
1 change: 0 additions & 1 deletion kustomize/overlays/uat/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ resources:
- ../../base
- ingress.yaml
- pdb.yaml
- pvc.yaml
configMapGenerator:
- name: mapproxy-configmap
files:
Expand Down
12 changes: 0 additions & 12 deletions kustomize/overlays/uat/pvc.yaml

This file was deleted.

0 comments on commit 733940e

Please sign in to comment.