mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 15:37:44 +02:00
![feisar-bot[bot]](/assets/img/avatar_default.png)
| datasource | package | from | to | | ----------- | ----------------------------- | ------ | ------ | | github-tags | fluxcd/flux2 | v2.4.0 | v2.5.1 | | docker | ghcr.io/fluxcd/flux-manifests | v2.4.0 | v2.5.1 |
89 lines
2.8 KiB
YAML
89 lines
2.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/ocirepository_v1beta2.json
|
|
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
|
kind: OCIRepository
|
|
metadata:
|
|
name: flux-manifests
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 10m
|
|
url: oci://ghcr.io/fluxcd/flux-manifests
|
|
ref:
|
|
tag: v2.5.1@sha256:3ad46381a9efb9e4ab491d76f3cc02389284ef38a7ecf3f5f3e3c186ded63255
|
|
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: flux-installation
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 10m
|
|
path: ./
|
|
prune: true
|
|
wait: true
|
|
sourceRef:
|
|
kind: OCIRepository
|
|
name: flux-manifests
|
|
patches:
|
|
# Remove the network policies
|
|
- patch: |
|
|
$patch: delete
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: not-used
|
|
target:
|
|
group: networking.k8s.io
|
|
kind: NetworkPolicy
|
|
# Increase the number of reconciliations that can be performed in parallel and bump the resources limits
|
|
# https://fluxcd.io/flux/cheatsheets/bootstrap/#increase-the-number-of-workers
|
|
- patch: |
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --concurrent=8
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --kube-api-qps=500
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --kube-api-burst=1000
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --requeue-dependency=5s
|
|
target:
|
|
kind: Deployment
|
|
name: (kustomize-controller|helm-controller|source-controller)
|
|
- patch: |
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: not-used
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: manager
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 2Gi
|
|
target:
|
|
kind: Deployment
|
|
name: (kustomize-controller|helm-controller|source-controller)
|
|
# Enable Helm near OOM detection
|
|
# https://fluxcd.io/flux/cheatsheets/bootstrap/#enable-helm-near-oom-detection
|
|
- patch: |
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --feature-gates=OOMWatch=true
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --oom-watch-memory-threshold=95
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/args/-
|
|
value: --oom-watch-interval=500ms
|
|
target:
|
|
kind: Deployment
|
|
name: helm-controller
|