From 47b2a66081e29ac76954381fd7c65979074ffb45 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Wed, 28 May 2025 15:00:38 +0300 Subject: [PATCH 1/2] (k8s) Change policy on mongodb volume to Retain In case of mistake, if pv/pvc deleted better to change policy to Retain, so we can recover the data. Signed-off-by: Denys Fedoryshchenko --- kube/aks/mongo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube/aks/mongo.yaml b/kube/aks/mongo.yaml index 77e1d811..b4e44b85 100644 --- a/kube/aks/mongo.yaml +++ b/kube/aks/mongo.yaml @@ -97,6 +97,6 @@ spec: operator: In values: - "" - persistentVolumeReclaimPolicy: Delete + persistentVolumeReclaimPolicy: Retain storageClassName: managed-csi-premium volumeMode: Filesystem From 370b349340c12be07b8080faf45bd6be0b0b15d5 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Wed, 28 May 2025 15:08:30 +0300 Subject: [PATCH 2/2] Add compression in API ingress Signed-off-by: Denys Fedoryshchenko --- kube/aks/ingress.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kube/aks/ingress.yaml b/kube/aks/ingress.yaml index b079d1b3..eabbd0ab 100644 --- a/kube/aks/ingress.yaml +++ b/kube/aks/ingress.yaml @@ -13,6 +13,9 @@ metadata: namespace: kernelci-api annotations: cert-manager.io/cluster-issuer: all-issuer + nginx.ingress.kubernetes.io/compression-level: "6" # 1-9, higher = better compression + nginx.ingress.kubernetes.io/compression-types: "application/json text/html text/plain application/javascript text/css application/x-javascript" # MIME types to compress + nginx.ingress.kubernetes.io/compression-min-length: "1000" # bytes spec: ingressClassName: ingressclass-api tls: