Skip to content

Commit

Permalink
feat: add topology to not using one node
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 25, 2024
1 parent 8476cbf commit 3fdccf8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/soteria/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ spec:
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
{{- include "soteria.selectorLabels" . | nindent 8 }}

0 comments on commit 3fdccf8

Please sign in to comment.