From 09e88b922f04e610b07b3356a5dd46c05e7ef632 Mon Sep 17 00:00:00 2001 From: Sharath Kumar H K Date: Thu, 21 May 2026 23:38:45 +0530 Subject: [PATCH 1/3] add pod anti-affinity rules for all components --- charts/accessnode/Chart.yaml | 2 +- charts/accessnode/templates/deploy.yaml | 14 ++++++++++++++ charts/commandcenter/Chart.yaml | 2 +- charts/commandcenter/templates/deploy.yaml | 14 ++++++++++++++ charts/cs/Chart.yaml | 2 +- charts/cs/templates/deploy.yaml | 14 ++++++++++++++ charts/gcmserver/Chart.yaml | 2 +- charts/gcmserver/templates/deploy.yaml | 14 ++++++++++++++ charts/hubserver/Chart.yaml | 2 +- charts/hubserver/templates/deploy.yaml | 14 ++++++++++++++ charts/mediaagent/Chart.yaml | 2 +- charts/mediaagent/templates/deploy.yaml | 14 ++++++++++++++ charts/networkgateway/Chart.yaml | 2 +- charts/networkgateway/templates/deploy.yaml | 14 ++++++++++++++ charts/webserver/Chart.yaml | 2 +- charts/webserver/templates/deploy.yaml | 14 ++++++++++++++ 16 files changed, 120 insertions(+), 8 deletions(-) diff --git a/charts/accessnode/Chart.yaml b/charts/accessnode/Chart.yaml index dbee218..1765055 100644 --- a/charts/accessnode/Chart.yaml +++ b/charts/accessnode/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: accessnode description: A Helm chart for creating an access node type: application -version: "1.0.9" +version: "1.0.10" appVersion: "1" diff --git a/charts/accessnode/templates/deploy.yaml b/charts/accessnode/templates/deploy.yaml index e87bd02..8d675f9 100644 --- a/charts/accessnode/templates/deploy.yaml +++ b/charts/accessnode/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: accessnode spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - accessnode {{- include "cv.initContainer" . }} containers: # access node diff --git a/charts/commandcenter/Chart.yaml b/charts/commandcenter/Chart.yaml index 61dbffa..083d459 100644 --- a/charts/commandcenter/Chart.yaml +++ b/charts/commandcenter/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: commandcenter description: A Helm chart for creating the command center type: application -version: "1.0.9" +version: "1.0.10" appVersion: "1" diff --git a/charts/commandcenter/templates/deploy.yaml b/charts/commandcenter/templates/deploy.yaml index 4673284..4cb8193 100644 --- a/charts/commandcenter/templates/deploy.yaml +++ b/charts/commandcenter/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: commandcenter spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - commandcenter {{- include "cv.initContainer" . }} containers: # Command center diff --git a/charts/cs/Chart.yaml b/charts/cs/Chart.yaml index 73a7b47..19e8968 100644 --- a/charts/cs/Chart.yaml +++ b/charts/cs/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: commserve description: A Helm chart for creating the CS component type: application -version: "1.0.11" +version: "1.0.12" appVersion: "1" diff --git a/charts/cs/templates/deploy.yaml b/charts/cs/templates/deploy.yaml index bb42cfb..f89327c 100644 --- a/charts/cs/templates/deploy.yaml +++ b/charts/cs/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: commserve spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - commserve {{- include "cv.initContainer" . }} containers: # Commserve diff --git a/charts/gcmserver/Chart.yaml b/charts/gcmserver/Chart.yaml index 273c6b4..6de2008 100644 --- a/charts/gcmserver/Chart.yaml +++ b/charts/gcmserver/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: gcmserver description: A Helm chart for creating the gcmserver type: application -version: "1.0.11" +version: "1.0.12" appVersion: "1" diff --git a/charts/gcmserver/templates/deploy.yaml b/charts/gcmserver/templates/deploy.yaml index 94eca2b..80f75b9 100644 --- a/charts/gcmserver/templates/deploy.yaml +++ b/charts/gcmserver/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: gcmserver spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - gcmserver {{- include "cv.initContainer" . }} containers: # Webserver diff --git a/charts/hubserver/Chart.yaml b/charts/hubserver/Chart.yaml index f970617..23ff4a7 100644 --- a/charts/hubserver/Chart.yaml +++ b/charts/hubserver/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: hubserver description: A Helm chart for creating the hubserver type: application -version: "1.0.11" +version: "1.0.12" appVersion: "1" diff --git a/charts/hubserver/templates/deploy.yaml b/charts/hubserver/templates/deploy.yaml index ebf3660..36d8618 100644 --- a/charts/hubserver/templates/deploy.yaml +++ b/charts/hubserver/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: hubserver spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - hubserver {{- include "cv.initContainer" . }} containers: # Webserver diff --git a/charts/mediaagent/Chart.yaml b/charts/mediaagent/Chart.yaml index a34a2b6..c770bb0 100644 --- a/charts/mediaagent/Chart.yaml +++ b/charts/mediaagent/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: mediaagent description: A Helm chart for creating a media agent type: application -version: "1.0.9" +version: "1.0.10" appVersion: "1" diff --git a/charts/mediaagent/templates/deploy.yaml b/charts/mediaagent/templates/deploy.yaml index 35560b8..c5b6cee 100644 --- a/charts/mediaagent/templates/deploy.yaml +++ b/charts/mediaagent/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: mediaagent spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - mediaagent {{- include "cv.initContainer" . }} containers: # Mediaagent diff --git a/charts/networkgateway/Chart.yaml b/charts/networkgateway/Chart.yaml index 3674477..14bcf0b 100644 --- a/charts/networkgateway/Chart.yaml +++ b/charts/networkgateway/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: networkgateway description: A Helm chart for creating an FS agent which can serve as a network gateway type: application -version: "1.0.9" +version: "1.0.10" appVersion: "1" diff --git a/charts/networkgateway/templates/deploy.yaml b/charts/networkgateway/templates/deploy.yaml index 81c8610..da3a76a 100644 --- a/charts/networkgateway/templates/deploy.yaml +++ b/charts/networkgateway/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: networkgateway spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - networkgateway {{- include "cv.initContainer" . }} containers: # networkgateway diff --git a/charts/webserver/Chart.yaml b/charts/webserver/Chart.yaml index fea9f95..97afabc 100644 --- a/charts/webserver/Chart.yaml +++ b/charts/webserver/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: webserver description: A Helm chart for creating the webserver type: application -version: "1.0.11" +version: "1.0.12" appVersion: "1" diff --git a/charts/webserver/templates/deploy.yaml b/charts/webserver/templates/deploy.yaml index 605dcfd..ae52622 100644 --- a/charts/webserver/templates/deploy.yaml +++ b/charts/webserver/templates/deploy.yaml @@ -18,9 +18,23 @@ spec: name: {{ $objectname }} labels: app.kubernetes.io/name: {{ $objectname }} + app.kubernetes.io/component: webserver spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + namespaceSelector: {} + labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - webserver {{- include "cv.initContainer" . }} containers: # Webserver From 7c1970f0e15a0702232a1cd82399ba175f15721a Mon Sep 17 00:00:00 2001 From: Balamurugan Avudaiappan Date: Fri, 22 May 2026 11:20:07 -0700 Subject: [PATCH 2/3] Add pod affinity rules behind a parameter --- charts/accessnode/templates/deploy.yaml | 2 ++ charts/accessnode/values.yaml | 3 +++ charts/commandcenter/templates/deploy.yaml | 2 ++ charts/commandcenter/values.yaml | 3 +++ charts/cs/templates/deploy.yaml | 2 ++ charts/cs/values.yaml | 3 +++ charts/gcmserver/templates/deploy.yaml | 2 ++ charts/gcmserver/values.yaml | 3 +++ charts/hubserver/templates/deploy.yaml | 2 ++ charts/hubserver/values.yaml | 3 +++ charts/mediaagent/templates/deploy.yaml | 2 ++ charts/mediaagent/values.yaml | 3 +++ charts/networkgateway/templates/deploy.yaml | 2 ++ charts/networkgateway/values.yaml | 3 +++ charts/webserver/templates/deploy.yaml | 2 ++ charts/webserver/values.yaml | 3 +++ 16 files changed, 40 insertions(+) diff --git a/charts/accessnode/templates/deploy.yaml b/charts/accessnode/templates/deploy.yaml index 8d675f9..651b7c8 100644 --- a/charts/accessnode/templates/deploy.yaml +++ b/charts/accessnode/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - accessnode + {{- end }} {{- include "cv.initContainer" . }} containers: # access node diff --git a/charts/accessnode/values.yaml b/charts/accessnode/values.yaml index fca7144..b9c478c 100644 --- a/charts/accessnode/values.yaml +++ b/charts/accessnode/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/commandcenter/templates/deploy.yaml b/charts/commandcenter/templates/deploy.yaml index 4cb8193..9578580 100644 --- a/charts/commandcenter/templates/deploy.yaml +++ b/charts/commandcenter/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - commandcenter + {{- end }} {{- include "cv.initContainer" . }} containers: # Command center diff --git a/charts/commandcenter/values.yaml b/charts/commandcenter/values.yaml index 871a280..7d833da 100644 --- a/charts/commandcenter/values.yaml +++ b/charts/commandcenter/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/cs/templates/deploy.yaml b/charts/cs/templates/deploy.yaml index f89327c..442aadf 100644 --- a/charts/cs/templates/deploy.yaml +++ b/charts/cs/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - commserve + {{- end }} {{- include "cv.initContainer" . }} containers: # Commserve diff --git a/charts/cs/values.yaml b/charts/cs/values.yaml index f1f3259..d9bba12 100644 --- a/charts/cs/values.yaml +++ b/charts/cs/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/gcmserver/templates/deploy.yaml b/charts/gcmserver/templates/deploy.yaml index 80f75b9..d85e859 100644 --- a/charts/gcmserver/templates/deploy.yaml +++ b/charts/gcmserver/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - gcmserver + {{- end }} {{- include "cv.initContainer" . }} containers: # Webserver diff --git a/charts/gcmserver/values.yaml b/charts/gcmserver/values.yaml index 5af03c1..0c2dc90 100644 --- a/charts/gcmserver/values.yaml +++ b/charts/gcmserver/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/hubserver/templates/deploy.yaml b/charts/hubserver/templates/deploy.yaml index 36d8618..5c71ce7 100644 --- a/charts/hubserver/templates/deploy.yaml +++ b/charts/hubserver/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - hubserver + {{- end }} {{- include "cv.initContainer" . }} containers: # Webserver diff --git a/charts/hubserver/values.yaml b/charts/hubserver/values.yaml index 161945d..744ca49 100644 --- a/charts/hubserver/values.yaml +++ b/charts/hubserver/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/mediaagent/templates/deploy.yaml b/charts/mediaagent/templates/deploy.yaml index c5b6cee..14cc207 100644 --- a/charts/mediaagent/templates/deploy.yaml +++ b/charts/mediaagent/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - mediaagent + {{- end }} {{- include "cv.initContainer" . }} containers: # Mediaagent diff --git a/charts/mediaagent/values.yaml b/charts/mediaagent/values.yaml index b4b2b3d..94a0559 100644 --- a/charts/mediaagent/values.yaml +++ b/charts/mediaagent/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/networkgateway/templates/deploy.yaml b/charts/networkgateway/templates/deploy.yaml index da3a76a..a663a26 100644 --- a/charts/networkgateway/templates/deploy.yaml +++ b/charts/networkgateway/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - networkgateway + {{- end }} {{- include "cv.initContainer" . }} containers: # networkgateway diff --git a/charts/networkgateway/values.yaml b/charts/networkgateway/values.yaml index 28cb777..e91d505 100644 --- a/charts/networkgateway/values.yaml +++ b/charts/networkgateway/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName diff --git a/charts/webserver/templates/deploy.yaml b/charts/webserver/templates/deploy.yaml index ae52622..6119279 100644 --- a/charts/webserver/templates/deploy.yaml +++ b/charts/webserver/templates/deploy.yaml @@ -22,6 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -35,6 +36,7 @@ spec: operator: In values: - webserver + {{- end }} {{- include "cv.initContainer" . }} containers: # Webserver diff --git a/charts/webserver/values.yaml b/charts/webserver/values.yaml index 2bd5ff7..5bcddff 100644 --- a/charts/webserver/values.yaml +++ b/charts/webserver/values.yaml @@ -1,3 +1,6 @@ +# nodeAffinityMode: # Optional. Node affinity rules mode. Values: 0 (disabled), 1 (enabled). Default is 0 +nodeAffinityMode: 0 + # clientName: # Optional. Client Name. Helm Release name will be used by default # displayname: # Optional. Client Display Name. Defaults to same value as clientName From f3707670978a8c6c5b1303b43a559496239cce0d Mon Sep 17 00:00:00 2001 From: Balamurugan Avudaiappan Date: Fri, 22 May 2026 12:26:12 -0700 Subject: [PATCH 3/3] Additional parentheses is removed --- charts/accessnode/templates/deploy.yaml | 2 +- charts/commandcenter/templates/deploy.yaml | 2 +- charts/cs/templates/deploy.yaml | 2 +- charts/gcmserver/templates/deploy.yaml | 2 +- charts/hubserver/templates/deploy.yaml | 2 +- charts/mediaagent/templates/deploy.yaml | 2 +- charts/networkgateway/templates/deploy.yaml | 2 +- charts/webserver/templates/deploy.yaml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/accessnode/templates/deploy.yaml b/charts/accessnode/templates/deploy.yaml index 651b7c8..d6b2a52 100644 --- a/charts/accessnode/templates/deploy.yaml +++ b/charts/accessnode/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/commandcenter/templates/deploy.yaml b/charts/commandcenter/templates/deploy.yaml index 9578580..d9a980a 100644 --- a/charts/commandcenter/templates/deploy.yaml +++ b/charts/commandcenter/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/cs/templates/deploy.yaml b/charts/cs/templates/deploy.yaml index 442aadf..2030bb2 100644 --- a/charts/cs/templates/deploy.yaml +++ b/charts/cs/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/gcmserver/templates/deploy.yaml b/charts/gcmserver/templates/deploy.yaml index d85e859..d9bcd8c 100644 --- a/charts/gcmserver/templates/deploy.yaml +++ b/charts/gcmserver/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/hubserver/templates/deploy.yaml b/charts/hubserver/templates/deploy.yaml index 5c71ce7..4b404ec 100644 --- a/charts/hubserver/templates/deploy.yaml +++ b/charts/hubserver/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/mediaagent/templates/deploy.yaml b/charts/mediaagent/templates/deploy.yaml index 14cc207..e556e0b 100644 --- a/charts/mediaagent/templates/deploy.yaml +++ b/charts/mediaagent/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/networkgateway/templates/deploy.yaml b/charts/networkgateway/templates/deploy.yaml index a663a26..14644ab 100644 --- a/charts/networkgateway/templates/deploy.yaml +++ b/charts/networkgateway/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/webserver/templates/deploy.yaml b/charts/webserver/templates/deploy.yaml index 6119279..194aa79 100644 --- a/charts/webserver/templates/deploy.yaml +++ b/charts/webserver/templates/deploy.yaml @@ -22,7 +22,7 @@ spec: spec: {{- include "cv.imagePullSecret" . }} {{- include "cv.additionalPodspecs" . }} - {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1) }} + {{- if eq (or .Values.nodeAffinityMode ((.Values).global).nodeAffinityMode) 1 }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: