Skip to content

Commit

Permalink
fix: use the default storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Sep 26, 2024
1 parent 7dfa14a commit 5892015
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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? |
Expand Down
1 change: 1 addition & 0 deletions diracx/templates/diracx/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{- include "diracx.labels" . | nindent 4 }}
spec:
storageClassName: {{ if eq .Values.global.environment "prod" }}IfNotPresent{{ else }}standard{{ end }}
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
Expand Down
3 changes: 1 addition & 2 deletions diracx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: standard # Default value can be set here, or customized via Helm CLI
# -- timeout for job deadlines
activeDeadlineSeconds: 900
images:
Expand Down Expand Up @@ -516,7 +516,6 @@ elasticsearch:
# Request smaller persistent volumes.
volumeClaimTemplate:
accessModes: ["ReadWriteOnce"]
storageClassName: "standard"
resources:
requests:
storage: 100M
Expand Down
2 changes: 1 addition & 1 deletion k3s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ sed -i 's/<your_hostname>/thenameyouareacutally.using.com/g' ./diracx-charts/k3s

# Deploy via provided helm charts

helm install --timeout 3600s diracx ./diracx-charts/diracx/ -f ./diracx-charts/k3s/examples/my.values.yaml --debug
helm install --timeout 3600s diracx ./diracx-charts/diracx/ -f ./diracx-charts/k3s/examples/my.values.yaml --set global.environment=prod --debug
```

## Configure DiracX
Expand Down

0 comments on commit 5892015

Please sign in to comment.