Skip to content

Commit

Permalink
Set GOMAXPROCS and GOMEMLIMIT
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Apr 11, 2024
1 parent b368bb1 commit 4629b83
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions manifests/install/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,22 @@ patches:
target:
kind: Deployment
name: kustomize-controller
- 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

0 comments on commit 4629b83

Please sign in to comment.