Skip to content

Commit

Permalink
Merge pull request #2052 from wojtek-t/unify_pod_sizes_5
Browse files Browse the repository at this point in the history
Unify resource requests for load test
  • Loading branch information
k8s-ci-robot authored Apr 26, 2022
2 parents 48986c1 + 3ea7b44 commit 1f00a77
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions clusterloader2/testing/load/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
- name: TEST_ENV
value: {{$Env}}
resources:
# Keep the CpuRequest/MemoryRequest request equal percentage of 1-core, 4GB node.
# For now we're setting it to 0.5%.
requests:
cpu: 5m
memory: "20M"
Expand Down
6 changes: 4 additions & 2 deletions clusterloader2/testing/load/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ spec:
# TODO(#799): We should test the "run-to-completion" workflow and hence don't use pause pods.
image: k8s.gcr.io/pause:3.1
resources:
# Keep the CpuRequest/MemoryRequest request equal percentage of 1-core, 4GB node.
# For now we're setting it to 0.5%.
requests:
cpu: 10m
memory: "10M"
cpu: 5m
memory: "20M"
restartPolicy: OnFailure
terminationGracePeriodSeconds: 1
# Add not-ready/unreachable tolerations for 15 minutes so that node
Expand Down
6 changes: 4 additions & 2 deletions clusterloader2/testing/load/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ spec:
- containerPort: 80
name: web
resources:
# Keep the CpuRequest/MemoryRequest request equal percentage of 1-core, 4GB node.
# For now we're setting it to 0.5%.
requests:
cpu: 10m
memory: "10M"
cpu: 5m
memory: "20M"
{{if $EnablePVs}}
volumeMounts:
- name: pv
Expand Down

0 comments on commit 1f00a77

Please sign in to comment.