Skip to content

Commit

Permalink
update config to specify weight when assigning nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lagrimas committed Jul 20, 2023
1 parent 98ee958 commit 538a98d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
- weight: 50
preference:
matchExpressions:
- key: kubernetes.io/hostname
Expand Down
7 changes: 4 additions & 3 deletions k8chart/ols4/templates/ols4-backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ spec:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
Expand Down
7 changes: 4 additions & 3 deletions k8chart/ols4/templates/ols4-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ spec:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
Expand Down

0 comments on commit 538a98d

Please sign in to comment.