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 6275bbb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions manifests/install/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,20 @@ patches:
target:
kind: Deployment
name: kustomize-controller
- patch: |
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
target:
kind: Deployment

0 comments on commit 6275bbb

Please sign in to comment.