set GOMAXPROCS and GOMEMLIMIT vars

if applied, set GOMAXPROCS and GOMEMLIMIT for all controllers based on container resources which leads to reduce throttling and better performance

Signed-off-by: Hadi Abbasi <hawwwdi@gmail.com>
pull/4717/head
Hadi Abbasi 9 months ago
parent f93da6fa76
commit 205314e363

@ -26,3 +26,23 @@ images:
newName: ghcr.io/fluxcd/image-reflector-controller
- name: fluxcd/image-automation-controller
newName: ghcr.io/fluxcd/image-automation-controller
patches:
- patch: |
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory
target:
kind: Deployment

Loading…
Cancel
Save