Skip to content

Commit

Permalink
added if condition for podAffinity
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Angali authored and Naveen Angali committed Mar 21, 2024
1 parent bd031b7 commit 4821741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified profisee-platform-0.1.31.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions profisee-platform/templates/statefullset-profisee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
terminationGracePeriodSeconds: 60
serviceAccountName: profiseeserviceaccount
automountServiceAccountToken: false
{{- if (gt (int .Values.profiseeRunTime.clusterNodeCount) 1) }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -31,6 +32,7 @@ spec:
matchLabels:
app: profisee
topologyKey: "kubernetes.io/hostname"
{{- end}}
nodeSelector:
{{- if .Values.cloud.azure.isProvider }}
{{ if hasSuffix "win22" .Values.image.tag }}
Expand Down

0 comments on commit 4821741

Please sign in to comment.