Set GOMAXPROCS and GOMEMLIMIT for bootstrap
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
@@ -7,3 +7,19 @@
|
|||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/priorityClassName
|
path: /spec/template/spec/priorityClassName
|
||||||
value: system-cluster-critical
|
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
|
||||||
|
|||||||
@@ -4,3 +4,19 @@
|
|||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: image-automation-controller
|
value: image-automation-controller
|
||||||
|
- 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
|
||||||
|
|||||||
@@ -4,3 +4,19 @@
|
|||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: image-reflector-controller
|
value: image-reflector-controller
|
||||||
|
- 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
|
||||||
|
|||||||
@@ -7,3 +7,19 @@
|
|||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/priorityClassName
|
path: /spec/template/spec/priorityClassName
|
||||||
value: system-cluster-critical
|
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
|
||||||
|
|||||||
@@ -1,3 +1,19 @@
|
|||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: notification-controller
|
value: notification-controller
|
||||||
|
- 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
|
||||||
|
|||||||
@@ -7,3 +7,19 @@
|
|||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/priorityClassName
|
path: /spec/template/spec/priorityClassName
|
||||||
value: system-cluster-critical
|
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
|
||||||
|
|||||||
@@ -26,23 +26,3 @@ 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user