Skip to content

Commit

Permalink
Add affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
valerauko committed Aug 29, 2023
1 parent bff4734 commit 0bbf1d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
role: static
spec:
replicas: 2
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: advent
Expand All @@ -17,6 +21,14 @@ spec:
app: advent
role: static
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: advent
role: static
topologyKey: kubernetes.io/hostname
containers:
- name: advent-static
image: ghcr.io/valerauko/personal-advent:1.1.0
Expand Down

0 comments on commit 0bbf1d4

Please sign in to comment.