forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scheduler_perf test case for NodeAdd event handling
- Loading branch information
Showing
12 changed files
with
296 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
test/integration/scheduler_perf/config/event_handling/nodeadd-node-high-capacity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
generateName: node-high-capacity- | ||
spec: | ||
taints: | ||
- key: allow | ||
effect: NoSchedule | ||
status: | ||
capacity: | ||
pods: "3000" | ||
cpu: "200" | ||
memory: 200Gi | ||
conditions: | ||
- status: "True" | ||
type: Ready | ||
phase: Running |
17 changes: 17 additions & 0 deletions
17
test/integration/scheduler_perf/config/event_handling/nodeadd-node-low-capacity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
generateName: node-low-capacity- | ||
spec: | ||
taints: | ||
- key: allow | ||
effect: NoSchedule | ||
status: | ||
capacity: | ||
pods: "3000" | ||
cpu: "0.1" | ||
memory: 100Mi | ||
conditions: | ||
- status: "True" | ||
type: Ready | ||
phase: Running |
23 changes: 23 additions & 0 deletions
23
test/integration/scheduler_perf/config/event_handling/nodeadd-node-unschedulable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Node unschedulable is similar to node unblocker but has unschedulable: true. | ||
apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
generateName: node-unschedulable- | ||
labels: | ||
topology.kubernetes.io/zone: zone1 | ||
affinity: allow | ||
topology: allow | ||
spec: | ||
unschedulable: true | ||
taints: | ||
- key: allow | ||
effect: NoSchedule | ||
status: | ||
capacity: | ||
pods: "3000" | ||
cpu: "4" | ||
memory: 32Gi | ||
conditions: | ||
- status: "True" | ||
type: Ready | ||
phase: Running |
21 changes: 21 additions & 0 deletions
21
test/integration/scheduler_perf/config/event_handling/nodeadd-node-with-labels.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
generateName: node-unblocker- | ||
labels: | ||
topology.kubernetes.io/zone: zone1 | ||
affinity: allow | ||
topology: allow | ||
spec: | ||
taints: | ||
- key: allow | ||
effect: NoSchedule | ||
status: | ||
capacity: | ||
pods: "3000" | ||
cpu: "4" | ||
memory: 32Gi | ||
conditions: | ||
- status: "True" | ||
type: Ready | ||
phase: Running |
17 changes: 17 additions & 0 deletions
17
test/integration/scheduler_perf/config/event_handling/nodeadd-node-with-taint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
generateName: node-with-taint- | ||
spec: | ||
taints: | ||
- key: toleration | ||
effect: NoSchedule | ||
status: | ||
capacity: | ||
pods: "3000" | ||
cpu: "4" | ||
memory: 32Gi | ||
conditions: | ||
- status: "True" | ||
type: Ready | ||
phase: Running |
21 changes: 21 additions & 0 deletions
21
test/integration/scheduler_perf/config/event_handling/nodeadd-pod-interpodaffinity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-unsched- | ||
labels: | ||
color: green | ||
spec: | ||
tolerations: | ||
- key: allow | ||
operator: Exists | ||
effect: NoSchedule | ||
affinity: | ||
podAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchLabels: | ||
color: green | ||
topologyKey: topology.kubernetes.io/zone | ||
containers: | ||
- image: registry.k8s.io/pause:3.10 | ||
name: pause |
21 changes: 21 additions & 0 deletions
21
test/integration/scheduler_perf/config/event_handling/nodeadd-pod-nodeaffinity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-unsched- | ||
spec: | ||
tolerations: | ||
- key: allow | ||
operator: Exists | ||
effect: NoSchedule | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: affinity | ||
operator: In | ||
values: | ||
- allow | ||
containers: | ||
- image: registry.k8s.io/pause:3.10 | ||
name: pause |
16 changes: 16 additions & 0 deletions
16
test/integration/scheduler_perf/config/event_handling/nodeadd-pod-noderesources.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-unsched- | ||
spec: | ||
tolerations: | ||
- key: allow | ||
operator: Exists | ||
effect: NoSchedule | ||
containers: | ||
- image: registry.k8s.io/pause:3.10 | ||
name: pause | ||
resources: | ||
requests: | ||
cpu: 0.2 | ||
memory: 200Mi |
12 changes: 12 additions & 0 deletions
12
test/integration/scheduler_perf/config/event_handling/nodeadd-pod-nodeunschedulable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-unsched- | ||
spec: | ||
tolerations: | ||
- key: allow | ||
operator: Exists | ||
effect: NoSchedule | ||
containers: | ||
- image: registry.k8s.io/pause:3.10 | ||
name: pause |
22 changes: 22 additions & 0 deletions
22
test/integration/scheduler_perf/config/event_handling/nodeadd-pod-podtopologyspread.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-unsched- | ||
labels: | ||
color: blue | ||
spec: | ||
tolerations: | ||
- key: allow | ||
operator: Exists | ||
effect: NoSchedule | ||
topologySpreadConstraints: | ||
- maxSkew: 1000 | ||
minDomains: 10000 | ||
topologyKey: topology | ||
whenUnsatisfiable: DoNotSchedule | ||
labelSelector: | ||
matchLabels: | ||
color: blue | ||
containers: | ||
- image: registry.k8s.io/pause:3.10 | ||
name: pause |
12 changes: 12 additions & 0 deletions
12
test/integration/scheduler_perf/config/event_handling/nodeadd-pod-tainttoleration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-unsched- | ||
spec: | ||
tolerations: | ||
- key: toleration | ||
operator: Exists | ||
effect: NoSchedule | ||
containers: | ||
- image: registry.k8s.io/pause:3.10 | ||
name: pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters