Skip to content

Commit

Permalink
bindata: CPU requests overstate actual needs
Browse files Browse the repository at this point in the history
In production environments etcd is over requested for actual use.
The bulk of that over-requesting comes from the sidecars which
overstate their actual needs. Adjust them based on the calculations
from prod clusters to request roughly 100m less CPU than before.
  • Loading branch information
smarterclayton committed Jan 27, 2021
1 parent d951824 commit 7952931
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bindata/etcd/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
resources:
requests:
memory: 60Mi
cpu: 30m
cpu: 10m
securityContext:
privileged: true
env:
Expand All @@ -68,7 +68,7 @@ ${COMPUTED_ENV_VARS}
resources:
requests:
memory: 60Mi
cpu: 30m
cpu: 10m
securityContext:
privileged: true
volumeMounts:
Expand All @@ -92,7 +92,7 @@ ${COMPUTED_ENV_VARS}
resources:
requests:
memory: 60Mi
cpu: 30m
cpu: 10m
volumeMounts:
- mountPath: /etc/kubernetes/manifests
name: static-pod-dir
Expand Down Expand Up @@ -209,7 +209,7 @@ ${COMPUTED_ENV_VARS}
resources:
requests:
memory: 200Mi
cpu: 100m
cpu: 40m
securityContext:
privileged: true
volumeMounts:
Expand Down
8 changes: 4 additions & 4 deletions pkg/operator/etcd_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7952931

Please sign in to comment.