forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#792 from mm4tt/load_daemonsets
Extend load test to cover DaemonSets
- Loading branch information
Showing
2 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
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
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,40 @@ | ||
{{$Image := DefaultParam .Image "k8s.gcr.io/pause:3.1"}} | ||
|
||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: {{.Name}} | ||
labels: | ||
group: load | ||
spec: | ||
updateStrategy: | ||
rollingUpdate: | ||
maxUnavailable: {{MaxInt 10 (DivideInt .Nodes 100)}} # 1% of nodes, but not less than 10 | ||
selector: | ||
matchLabels: | ||
name: {{.Name}} | ||
template: | ||
metadata: | ||
labels: | ||
group: load | ||
name: {{.Name}} | ||
spec: | ||
containers: | ||
- name: {{.Name}} | ||
image: {{$Image}} | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: "10M" | ||
terminationGracePeriodSeconds: 1 | ||
# Add not-ready/unreachable tolerations for 15 minutes so that node | ||
# failure doesn't trigger pod deletion. | ||
tolerations: | ||
- key: "node.kubernetes.io/not-ready" | ||
operator: "Exists" | ||
effect: "NoExecute" | ||
tolerationSeconds: 900 | ||
- key: "node.kubernetes.io/unreachable" | ||
operator: "Exists" | ||
effect: "NoExecute" | ||
tolerationSeconds: 900 |