Skip to content

Commit

Permalink
Merge pull request #55 from mitou/feat/pod-affinity
Browse files Browse the repository at this point in the history
[追加] podAntiAffinityを追加
  • Loading branch information
kyasbal authored Aug 29, 2024
2 parents 46a8319 + 3997294 commit d8ec9f5
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 d8ec9f5

Please sign in to comment.