1
0
mirror of synced 2026-02-07 19:25:57 +00:00

Set GOMAXPROCS and GOMEMLIMIT for bootstrap

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2024-04-12 13:32:06 +03:00
parent 205314e363
commit 26168b1241
7 changed files with 96 additions and 20 deletions

View File

@@ -26,23 +26,3 @@ 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