From 022e3ee2bb9b5b5cc0da41719e60ea846ba1040a Mon Sep 17 00:00:00 2001 From: Ashley Felton Date: Mon, 18 Mar 2024 09:22:13 +0800 Subject: [PATCH] Switch storage class for cache PVC to Azure File. --- kustomize/base/pvc.yaml | 6 +++--- kustomize/overlays/prod/deployment_patch.yaml | 8 ++++---- kustomize/overlays/uat/deployment_patch.yaml | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/kustomize/base/pvc.yaml b/kustomize/base/pvc.yaml index 48c47ed..35ea66c 100644 --- a/kustomize/base/pvc.yaml +++ b/kustomize/base/pvc.yaml @@ -1,12 +1,12 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: mapproxy-cache + name: mapproxy-cache-data spec: - storageClassName: managed-csi-premium + storageClassName: azurefile-csi-premium volumeMode: Filesystem accessModes: - - ReadWriteOnce + - ReadWriteMany resources: requests: storage: 32Gi diff --git a/kustomize/overlays/prod/deployment_patch.yaml b/kustomize/overlays/prod/deployment_patch.yaml index f2d3743..0237800 100644 --- a/kustomize/overlays/prod/deployment_patch.yaml +++ b/kustomize/overlays/prod/deployment_patch.yaml @@ -23,20 +23,20 @@ spec: - /cache_data volumeMounts: - mountPath: /cache_data - name: mapproxy-cache + name: mapproxy-cache-data containers: - name: mapproxy volumeMounts: - mountPath: /app/config name: mapproxy-configmap - mountPath: /cache_data - name: mapproxy-cache + name: mapproxy-cache-data volumes: - name: mapproxy-configmap configMap: name: mapproxy-configmap-prod defaultMode: 292 optional: false - - name: mapproxy-cache + - name: mapproxy-cache-data persistentVolumeClaim: - claimName: mapproxy-cache-prod + claimName: mapproxy-cache-data-prod diff --git a/kustomize/overlays/uat/deployment_patch.yaml b/kustomize/overlays/uat/deployment_patch.yaml index ffd593e..026c004 100644 --- a/kustomize/overlays/uat/deployment_patch.yaml +++ b/kustomize/overlays/uat/deployment_patch.yaml @@ -23,20 +23,20 @@ spec: - /cache_data volumeMounts: - mountPath: /cache_data - name: mapproxy-cache + name: mapproxy-cache-data containers: - name: mapproxy volumeMounts: - mountPath: /app/config name: mapproxy-configmap - mountPath: /cache_data - name: mapproxy-cache + name: mapproxy-cache-data volumes: - name: mapproxy-configmap configMap: name: mapproxy-configmap-uat defaultMode: 292 optional: false - - name: mapproxy-cache + - name: mapproxy-cache-data persistentVolumeClaim: - claimName: mapproxy-cache-uat + claimName: mapproxy-cache-data-uat