Skip to content

Commit

Permalink
feat: add pod anti affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Aug 29, 2024
1 parent 46a8319 commit 3997294
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kubernetes/mattermost/mattermost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ spec:
securityContext:
fsGroup: 2000
serviceAccountName: mattermost-primary
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- mattermost
topologyKey: topology.kubernetes.io/zone
initContainers:
- name: secret-placer
image: busybox
Expand Down

0 comments on commit 3997294

Please sign in to comment.