mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-21 07:01:47 +00:00
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>
This commit is contained in:
parent
f93da6fa76
commit
205314e363
1 changed files with 20 additions and 0 deletions
|
|
@ -26,3 +26,23 @@ images:
|
||||||
newName: ghcr.io/fluxcd/image-reflector-controller
|
newName: ghcr.io/fluxcd/image-reflector-controller
|
||||||
- name: fluxcd/image-automation-controller
|
- name: fluxcd/image-automation-controller
|
||||||
newName: ghcr.io/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…
Reference in a new issue