From af0a1e0f38239f7e3c7d32ae32571a5d93ffc523 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Thu, 26 Sep 2024 15:13:32 +0200 Subject: [PATCH] fix: use the default storage class --- README.md | 2 -- diracx/values.yaml | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index cff8854..1f425d4 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,6 @@ Note that this configuration is trivial and does not follow production recommand | elasticsearch.secret.password | string | `"elastic"` | | | elasticsearch.volumeClaimTemplate.accessModes[0] | string | `"ReadWriteOnce"` | | | elasticsearch.volumeClaimTemplate.resources.requests.storage | string | `"100M"` | | -| elasticsearch.volumeClaimTemplate.storageClassName | string | `"standard"` | | | fullnameOverride | string | `""` | | | global.activeDeadlineSeconds | int | `900` | timeout for job deadlines | | global.batchJobTTL | int | `600` | How long should batch jobs be retained after completing? | @@ -309,7 +308,6 @@ Note that this configuration is trivial and does not follow production recommand | global.images.tag | string | `"dev"` | | | global.images.web.repository | string | `"ghcr.io/diracgrid/diracx-web/static"` | | | global.images.web.tag | string | `"dev"` | | -| global.storageClassName | string | `"standard"` | | | grafana.datasources."datasources.yaml".apiVersion | int | `1` | | | grafana.datasources."datasources.yaml".datasources[0].name | string | `"Jaeger"` | | | grafana.datasources."datasources.yaml".datasources[0].type | string | `"jaeger"` | | diff --git a/diracx/values.yaml b/diracx/values.yaml index 3f7cdff..9f98755 100644 --- a/diracx/values.yaml +++ b/diracx/values.yaml @@ -11,7 +11,7 @@ global: # outdated reference to the "latest" tag. imagePullPolicy: Always # What storage class should we use for DiracX volumes - storageClassName: standard + storageClassName: {{ if eq .Values.global.environment "prod" }}IfNotPresent{{ else }}standard{{ end }} # -- timeout for job deadlines activeDeadlineSeconds: 900 images: @@ -516,7 +516,6 @@ elasticsearch: # Request smaller persistent volumes. volumeClaimTemplate: accessModes: ["ReadWriteOnce"] - storageClassName: "standard" resources: requests: storage: 100M