Skip to content

Commit

Permalink
Cpu resources for installation and less for agent (one full cpu is no…
Browse files Browse the repository at this point in the history
…t needed) (#70)

* Add some resources to cpu-installation and take from agent (not full cpu needed)

* even less cpu resources for agent - only 10-20% is reported by metrics-server
  • Loading branch information
ppalucki authored Oct 17, 2022
1 parent b4744af commit edd7031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
mountPath: /var/run/cri-resmgr
resources:
limits:
cpu: 1
cpu: 100m
memory: 512Mi
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ spec:
capabilities:
add:
- SYS_CHROOT
# give it some CPU resources to allow healthcheck/readiness probe work under heavy load
resources:
requests:
cpu: 100m
volumeMounts:
- name: host-volume
mountPath: /var/host
Expand Down

0 comments on commit edd7031

Please sign in to comment.