mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-14 03:37:31 +00:00
if applied, set GOMAXPROCS and GOMEMLIMIT for all controllers based on container resources which leads to reduce throttling and better performance Signed-off-by: Hadi Abbasi <hawwwdi@gmail.com>
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: flux-system
|
|
resources:
|
|
- namespace.yaml
|
|
- ../bases/source-controller
|
|
- ../bases/kustomize-controller
|
|
- ../bases/notification-controller
|
|
- ../bases/helm-controller
|
|
- ../bases/image-reflector-controller
|
|
- ../bases/image-automation-controller
|
|
- ../rbac
|
|
- ../policies
|
|
transformers:
|
|
- labels.yaml
|
|
images:
|
|
- name: fluxcd/source-controller
|
|
newName: ghcr.io/fluxcd/source-controller
|
|
- name: fluxcd/kustomize-controller
|
|
newName: ghcr.io/fluxcd/kustomize-controller
|
|
- name: fluxcd/helm-controller
|
|
newName: ghcr.io/fluxcd/helm-controller
|
|
- name: fluxcd/notification-controller
|
|
newName: ghcr.io/fluxcd/notification-controller
|
|
- name: fluxcd/image-reflector-controller
|
|
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
|