Skip to content

Commit 74cfa2f

Browse files
authored
Merge pull request kubernetes#127825 from macsko/add_pod_update_event_handling_scheduler_perf_test_case
Add scheduler_perf test case for pod update events handling
2 parents cc67c4c + 98e4892 commit 74cfa2f

14 files changed

+303
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Node
3+
metadata:
4+
name: unschedulable-node
5+
spec:
6+
unschedulable: true
7+
status:
8+
capacity:
9+
pods: "90000"
10+
cpu: "4"
11+
memory: 32Gi
12+
conditions:
13+
- status: "True"
14+
type: Ready
15+
phase: Running
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v1
2+
kind: Node
3+
metadata:
4+
name: node-with-taint
5+
spec:
6+
taints:
7+
- key: toleration
8+
effect: NoSchedule
9+
status:
10+
capacity:
11+
pods: "90000"
12+
cpu: "4"
13+
memory: 32Gi
14+
conditions:
15+
- status: "True"
16+
type: Ready
17+
phase: Running
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-blocker-{{ .Index }}
5+
spec:
6+
containers:
7+
- image: registry.k8s.io/pause:3.10
8+
name: pause
9+
resources:
10+
requests:
11+
cpu: 0.0001
12+
memory: 1Mi
13+
nodeName: scheduler-perf-node
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-blocker-{{ .Index }}
5+
labels:
6+
color: green-{{ .Index }}
7+
topology: blue
8+
spec:
9+
containers:
10+
- image: registry.k8s.io/pause:3.10
11+
name: pause
12+
resources:
13+
requests:
14+
cpu: 0.0001
15+
memory: {{ div 30000 .Count }}Mi
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-interpodaffinity-
5+
labels:
6+
color: green-{{ .Index }}
7+
type: unsched
8+
spec:
9+
affinity:
10+
podAntiAffinity:
11+
requiredDuringSchedulingIgnoredDuringExecution:
12+
- labelSelector:
13+
matchLabels:
14+
color: green-{{ .Index }}
15+
topologyKey: kubernetes.io/hostname
16+
namespaces: [blocker]
17+
containers:
18+
- image: registry.k8s.io/pause:3.10
19+
name: pause
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-noderesources-{{ .Index }}
5+
labels:
6+
type: unsched
7+
spec:
8+
containers:
9+
- image: registry.k8s.io/pause:3.10
10+
name: pause
11+
resources:
12+
requests:
13+
cpu: 0.0001
14+
memory: {{ div 30000 .Count }}Mi
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-nodeunschedulable-{{ .Index }}
5+
labels:
6+
type: unsched
7+
spec:
8+
tolerations:
9+
- key: node.kubernetes.io/unschedulable
10+
operator: Exists
11+
effect: NoSchedule
12+
containers:
13+
- image: registry.k8s.io/pause:3.10
14+
name: pause
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-nodeunschedulable-{{ .Index }}
5+
labels:
6+
type: unsched
7+
spec:
8+
containers:
9+
- image: registry.k8s.io/pause:3.10
10+
name: pause
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-podtopologyspread-
5+
labels:
6+
type: unsched
7+
topology: blue
8+
spec:
9+
topologySpreadConstraints:
10+
- maxSkew: {{ .Count }}
11+
minDomains: 100
12+
topologyKey: kubernetes.io/hostname
13+
whenUnsatisfiable: DoNotSchedule
14+
labelSelector:
15+
matchLabels:
16+
topology: blue
17+
containers:
18+
- image: registry.k8s.io/pause:3.10
19+
name: pause
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-schedulinggates-{{ .Index }}
5+
labels:
6+
type: unsched
7+
spec:
8+
containers:
9+
- image: registry.k8s.io/pause:3.10
10+
name: pause

0 commit comments

Comments
 (0)