diff --git a/helm/hpcc/templates/dali.yaml b/helm/hpcc/templates/dali.yaml index f096b534b00..69cea36ac7d 100644 --- a/helm/hpcc/templates/dali.yaml +++ b/helm/hpcc/templates/dali.yaml @@ -101,6 +101,13 @@ spec: {{- include "hpcc.addPrometheusScrapeAnnotations" $.Values.global.metrics | nindent 8 }} {{- end }} spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: dali + topologyKey: "kubernetes.io/hostname" {{- include "hpcc.placementsByPodTargetType" (dict "root" $ "pod" $dali.name "type" "dali") | indent 6 }} serviceAccountName: "hpcc-dali" terminationGracePeriodSeconds: {{ .terminationGracePeriodSeconds | default 3600 }} diff --git a/testing/helm/run.sh b/testing/helm/run.sh index d3f2ef17367..27db917d9f6 100755 --- a/testing/helm/run.sh +++ b/testing/helm/run.sh @@ -78,6 +78,7 @@ if type kube-score >/dev/null 2> /dev/null; then --ignore-container-cpu-limit \ --ignore-container-memory-limit \ --ignore-test deployment-has-poddisruptionbudget \ + --ignore-test statefulset-has-poddisruptionbudget \ - >results.txt 2>errors.txt if [ $? -ne 0 ] then