From bfd8e6c886eba8267940f77846f21b0ff9c46525 Mon Sep 17 00:00:00 2001 From: Antti Sivula Date: Thu, 28 Nov 2024 18:15:44 +0200 Subject: [PATCH] add support for nodeSelector in qryn-deployment.yaml --- templates/qryn-deployment.yaml | 4 ++++ values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/templates/qryn-deployment.yaml b/templates/qryn-deployment.yaml index 22bd28e..51f06f3 100644 --- a/templates/qryn-deployment.yaml +++ b/templates/qryn-deployment.yaml @@ -17,6 +17,10 @@ spec: automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- if .Values.nodeSelector }} + nodeSelector: + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{ end }} containers: - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" name: {{ include "qryn-helm.fullname" . }} diff --git a/values.yaml b/values.yaml index 363fd1b..ff6110f 100644 --- a/values.yaml +++ b/values.yaml @@ -28,10 +28,14 @@ livenessProbe: endpoint: "/metrics" podAnnotations: {} + # podLabels: {} podLabels: - qryn + nodeSelector: {} +# nodeSelector: +# kubernetes.io/os: linux tolerations: []