Skip to content

Commit

Permalink
change affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jun 29, 2020
1 parent 1a9bd92 commit f9ec055
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
12 changes: 10 additions & 2 deletions load-test/load-test-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,13 @@ spec:
- -H
- "x-api-key: xxx"
- https://api.fazio.apigeeks.net/items
nodeSelector:
cloud.google.com/gke-nodepool: apps
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: cloud.google.com/gke-nodepool
operator: In
values:
- apps
weight: 100
12 changes: 10 additions & 2 deletions load-test/load-test-orders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,13 @@ spec:
- -H
- "x-api-key: xxx"
- https://api.fazio.apigeeks.net/orders
nodeSelector:
cloud.google.com/gke-nodepool: apps
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: cloud.google.com/gke-nodepool
operator: In
values:
- apps
weight: 100
12 changes: 10 additions & 2 deletions load-test/load-test-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,13 @@ spec:
- -H
- "x-api-key: $API_KEY"
- https://httpbin.org/get
nodeSelector:
cloud.google.com/gke-nodepool: apps
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: cloud.google.com/gke-nodepool
operator: In
values:
- apps
weight: 100
12 changes: 10 additions & 2 deletions load-test/load-test-tracking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,13 @@ spec:
- -H
- "x-api-key: xxx"
- https://api.fazio.apigeeks.net/tracking
nodeSelector:
cloud.google.com/gke-nodepool: apps
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: cloud.google.com/gke-nodepool
operator: In
values:
- apps
weight: 100

0 comments on commit f9ec055

Please sign in to comment.