Skip to content

Commit

Permalink
feat: tune resources requests
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed May 28, 2024
1 parent 881ab58 commit 6abca8c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
reusePVC: true
resources:
requests:
cpu: 100m
cpu: 20m
limits:
memory: 4Gi
monitoring:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ spec:
key: password
resources:
requests:
cpu: 100m
cpu: 20m
limits:
memory: 512Mi
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ spec:
- RemovePodsViolatingInterPodAntiAffinity
- RemovePodsViolatingNodeAffinity
- RemovePodsViolatingNodeTaints
resources:
request:
cpu: 100m
memory: 64Mi
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
8 changes: 0 additions & 8 deletions kubernetes/main/apps/kube-system/multus/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ spec:
env:
- name: SKIP_CNI_BINARIES
value: "bandwidth,bridge,firewall,flannel,host-device,host-local,ipvlan,loopback,portmap,ptp,sbr,vlan,vrf" # macvlan,tuning
resources:
requests:
cpu: "10m"
memory: "15Mi"
securityContext:
capabilities:
drop:
Expand All @@ -95,10 +91,6 @@ spec:
args: |
set -x
cp /usr/src/multus-cni/bin/multus-shim /host/opt/cni/bin/multus-shim
resources:
requests:
cpu: "10m"
memory: "15Mi"
securityContext:
capabilities:
drop:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,14 @@ spec:
values:
master:
resources:
requests:
cpu: 21m
memory: 51Mi
limits:
memory: 51Mi
memory: 64Mi
worker:
config:
core:
sources: ["pci", "system", "usb"]
resources:
requests:
cpu: 5m
memory: 48Mi
limits:
memory: 48Mi
memory: 64Mi
prometheus:
enable: true
2 changes: 0 additions & 2 deletions kubernetes/main/apps/network/echo-server/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ spec:
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 10m
limits:
memory: 64Mi
defaultPodOptions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ spec:
app.kubernetes.io/component: controller
resources:
requests:
cpu: 100m
cpu: 10m
limits:
memory: 500Mi
memory: 512Mi
defaultBackend:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ spec:
app.kubernetes.io/component: controller
resources:
requests:
cpu: 100m
cpu: 10m
limits:
memory: 500Mi
memory: 512Mi
defaultBackend:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,5 @@ spec:
memory: 512Mi
requests:
memory: 128Mi
cpu: 100m
cpu: 50m

10 changes: 5 additions & 5 deletions kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
resources:
mgr:
requests:
cpu: "100m"
cpu: "50m"
memory: "512Mi"
limits:
memory: "2Gi"
Expand All @@ -81,7 +81,7 @@ spec:
memory: "1Gi"
osd:
requests:
cpu: "500m"
cpu: "100m"
memory: "2Gi"
limits:
memory: "6Gi"
Expand All @@ -105,7 +105,7 @@ spec:
memory: "1Gi"
cleanup:
requests:
cpu: "100m"
cpu: "50m"
memory: "100Mi"
limits:
memory: "1Gi"
Expand Down Expand Up @@ -159,7 +159,7 @@ spec:
priorityClassName: system-cluster-critical
resources:
requests:
cpu: "100m"
cpu: "20m"
memory: "1Gi"
limits:
memory: "3Gi"
Expand Down Expand Up @@ -203,7 +203,7 @@ spec:
port: 80
resources:
requests:
cpu: 100m
cpu: 20m
memory: 256Mi
limits:
memory: 2Gi
Expand Down

0 comments on commit 6abca8c

Please sign in to comment.