raise some CPU limits to reduce CPU throttling

This commit is contained in:
Finn 2024-08-15 12:11:37 -07:00
parent 101c362036
commit 7bcdf2ff96
5 changed files with 28 additions and 0 deletions

View file

@ -3,6 +3,7 @@ kind: postgresql
metadata: metadata:
name: keycloak-database name: keycloak-database
spec: spec:
spiloFSGroup: 103 # https://github.com/zalando/postgres-operator/issues/988
teamId: keycloak teamId: keycloak
volume: volume:
size: 1Gi size: 1Gi

View file

@ -0,0 +1,9 @@
- op: replace
path: /spec/template/spec/containers/0/resources/limits/cpu
value: 200m
- op: replace
path: /spec/template/spec/containers/1/resources/limits/cpu
value: 200m
- op: replace
path: /spec/template/spec/containers/2/resources/limits/cpu
value: 200m

View file

@ -0,0 +1,3 @@
- op: replace
path: /spec/template/spec/containers/2/resources/limits/cpu
value: 500m

View file

@ -47,6 +47,18 @@ patches:
target: target:
kind: Deployment kind: Deployment
name: prometheus-operator name: prometheus-operator
- path: blackbox-exporter-patches.yaml
target:
kind: Deployment
name: blackbox-exporter
- path: node-exporter-ds-patches.yaml
target:
kind: DaemonSet
name: node-exporter
- path: kube-state-metrics-deployment-patches.yaml
target:
kind: Deployment
name: kube-state-metrics
secretGenerator: secretGenerator:
- name: grafana-config - name: grafana-config
namespace: monitoring namespace: monitoring

View file

@ -0,0 +1,3 @@
- op: replace
path: /spec/template/spec/containers/1/resources/limits/cpu
value: 250m