Add runtimeClassName

This commit is contained in:
Thomas Petit 2024-06-03 20:08:35 +02:00 committed by Gaston Festari
parent 46a0358f8e
commit 18778f44a6
3 changed files with 7 additions and 0 deletions

View File

@ -113,6 +113,7 @@ The following table lists the configurable parameters of the Pms-chart chart and
| `initContainer.image.sha` | Optional SHA digest to specify a specific image rather than a specific tag | `""` |
| `initContainer.image.pullPolicy` | | `"IfNotPresent"` |
| `initContainer.script` | An optional script that will be run by the init container, it can be used on the first run to stop pms from starting when importing a pre-exiting database | `""` |
| `runtimeClassName` | Specify your own runtime class name eg use gpu | `""` |
| `rclone.enabled` | If rclone should be used to mount volumes | `false` |
| `rclone.image.registry` | The registry that should be used to pull the image from | `"index.docker.io"` |
| `rclone.image.repository` | The docker repo that will be used for the rclone container | `"rclone/rclone"` |

View File

@ -21,6 +21,9 @@ spec:
annotations:
{{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }}
spec:
{{- if .Values.runtimeClassName }}
runtimeClassName: {{ .Values.runtimeClassName | quote }}
{{- end }}
serviceAccountName: {{ include "pms-chart.serviceAccountName" . }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}

View File

@ -83,6 +83,9 @@ initContainer:
#
# echo "Done."
# specify your own runtime class name eg use gpu
runtimeClassName: ""
# the settings specific to rclone
rclone:
# if the rclone sidecar should be created