From 9495ee9f140d570a08d406d0ada2aede576e23b0 Mon Sep 17 00:00:00 2001 From: Manu Vamadevan Date: Mon, 8 Aug 2022 23:25:00 +0200 Subject: [PATCH] 343: node selection for helm chart - engine only - corrected config positioning --- helm/oncall/templates/engine/deployment.yaml | 6 ++--- helm/oncall/values.yaml | 24 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/helm/oncall/templates/engine/deployment.yaml b/helm/oncall/templates/engine/deployment.yaml index 262b403a..dc836feb 100644 --- a/helm/oncall/templates/engine/deployment.yaml +++ b/helm/oncall/templates/engine/deployment.yaml @@ -71,15 +71,15 @@ spec: timeoutSeconds: 3 resources: {{- toYaml .Values.engine.resources | nindent 12 }} - {{- with .Values.grafana.nodeSelector }} + {{- with .Values.engine.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.grafana.affinity }} + {{- with .Values.engine.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.grafana.tolerations }} + {{- with .Values.engine.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/helm/oncall/values.yaml b/helm/oncall/values.yaml index d49fd25b..9d753f83 100644 --- a/helm/oncall/values.yaml +++ b/helm/oncall/values.yaml @@ -28,6 +28,18 @@ engine: # requests: # cpu: 100m # memory: 128Mi + ## @param affinity Affinity for pod assignment + ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity + ## + affinity: { } + ## @param nodeSelector Node labels for pod assignment + ## ref: https://kubernetes.io/docs/user-guide/node-selection/ + ## + nodeSelector: { } + ## @param tolerations Tolerations for pod assignment + ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + ## + tolerations: [ ] # Celery workers pods configuration celery: @@ -161,18 +173,6 @@ grafana: enabled: true plugins: - grafana-oncall-app - ## @param affinity Affinity for pod assignment - ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## - affinity: { } - ## @param nodeSelector Node labels for pod assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: { } - ## @param tolerations Tolerations for pod assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [ ] nameOverride: "" fullnameOverride: ""