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
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
7 changed files with 96 additions and 20 deletions

View file

@ -7,3 +7,19 @@
- op: add
path: /spec/template/spec/priorityClassName
value: system-cluster-critical
- 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