Skip to content

Commit

Permalink
Web setup anti-affinity if we have replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
benbz committed Jun 29, 2023
1 parent 5616ba8 commit 98fb82b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ spec:
{{- range $secretName := $.Values.web.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
{{- if gt ($.Values.web.replicas | int) 1 }}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels: {{ include "jitsi.webShard.selectorLabels" (merge (dict "RelativeScope" .) $) | nindent 16 }}
topologyKey: kubernetes.io/hostname
{{- end }}
containers:
- env:
Expand Down

0 comments on commit 98fb82b

Please sign in to comment.