Skip to content

Commit

Permalink
Update affinity.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rasika-chivate committed Jan 20, 2025
1 parent efff7ba commit a01fd72
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/use/affinity.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ Here are several detailed use cases for affinity that highlight its diverse appl
Let's consider a use case in which you want to to ensure that HAProxy pods should be scheduled to run on the same Kubernetes node.

affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- haProxy
- key: app
operator: In
values:
- haProxy
topologyKey: "kubernetes.io/hostname"

??? info "What happens under the hood"
Expand Down

0 comments on commit a01fd72

Please sign in to comment.