Add option to define schedulerName

This commit is contained in:
Dimitri Ars
2021-05-03 12:37:36 +02:00
parent b88bbd6d4d
commit 1aadbad5bb

View File

@@ -376,6 +376,7 @@ Annotations can be added to the Gitea pod.
| extraVolumeMounts | Additional volumes mounts for the Gitea containers | {} |
| initPreScript | Bash script copied verbatim to start of init container | |
| securityContext | Run as a specific securityContext | {} |
| schedulerName | Use an alternate scheduler, e.g. "stork" | |
### Image

View File

@@ -28,6 +28,9 @@ spec:
{{- toYaml .Values.statefulset.labels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}

View File

@@ -68,6 +68,11 @@ resources: {}
# cpu: 100m
# memory: 128Mi
## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName:
nodeSelector: {}
tolerations: []