diff --git a/kustomize/base/deployment.yaml b/kustomize/base/deployment.yaml index 38f852d..7428499 100644 --- a/kustomize/base/deployment.yaml +++ b/kustomize/base/deployment.yaml @@ -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: diff --git a/kustomize/overlays/prod/deployment_patch.yaml b/kustomize/overlays/prod/deployment_patch.yaml index 0237800..80522e9 100644 --- a/kustomize/overlays/prod/deployment_patch.yaml +++ b/kustomize/overlays/prod/deployment_patch.yaml @@ -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 diff --git a/kustomize/overlays/prod/kustomization.yaml b/kustomize/overlays/prod/kustomization.yaml index faf5597..6382590 100644 --- a/kustomize/overlays/prod/kustomization.yaml +++ b/kustomize/overlays/prod/kustomization.yaml @@ -5,7 +5,6 @@ resources: - ../../base - ingress.yaml - pdb.yaml - - pvc.yaml configMapGenerator: - name: mapproxy-configmap files: diff --git a/kustomize/overlays/prod/pvc.yaml b/kustomize/overlays/prod/pvc.yaml deleted file mode 100644 index 5f152c7..0000000 --- a/kustomize/overlays/prod/pvc.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: mapproxy-cache-data -spec: - storageClassName: azurefile-csi-premium-retain-zrs - volumeMode: Filesystem - accessModes: - - ReadWriteMany - resources: - requests: - storage: 32Gi diff --git a/kustomize/overlays/uat/deployment_patch.yaml b/kustomize/overlays/uat/deployment_patch.yaml index 026c004..78a87e4 100644 --- a/kustomize/overlays/uat/deployment_patch.yaml +++ b/kustomize/overlays/uat/deployment_patch.yaml @@ -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 diff --git a/kustomize/overlays/uat/kustomization.yaml b/kustomize/overlays/uat/kustomization.yaml index e3f6d86..15d00fd 100644 --- a/kustomize/overlays/uat/kustomization.yaml +++ b/kustomize/overlays/uat/kustomization.yaml @@ -5,7 +5,6 @@ resources: - ../../base - ingress.yaml - pdb.yaml - - pvc.yaml configMapGenerator: - name: mapproxy-configmap files: diff --git a/kustomize/overlays/uat/pvc.yaml b/kustomize/overlays/uat/pvc.yaml deleted file mode 100644 index 35ea66c..0000000 --- a/kustomize/overlays/uat/pvc.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: mapproxy-cache-data -spec: - storageClassName: azurefile-csi-premium - volumeMode: Filesystem - accessModes: - - ReadWriteMany - resources: - requests: - storage: 32Gi