Skip to content

Commit

Permalink
HPCC-31962 ignore pdb, add podAntiAffinity
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed May 31, 2024
1 parent eb067eb commit 6e326b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helm/hpcc/templates/dali.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions testing/helm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e326b8

Please sign in to comment.