-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
278 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
kubernetes/apps/flux-system/flux-operator/app/resources/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
serviceMonitor: | ||
create: true |
26 changes: 26 additions & 0 deletions
26
kubernetes/apps/flux-system/flux-operator/instance/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: flux-instance | ||
spec: | ||
interval: 30m | ||
chart: | ||
spec: | ||
chart: flux-instance | ||
version: 0.12.0 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: controlplaneio | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
valuesFrom: | ||
- kind: ConfigMap | ||
name: flux-instance-helm-values |
12 changes: 12 additions & 0 deletions
12
kubernetes/apps/flux-system/flux-operator/instance/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./helmrelease.yaml | ||
- ./prometheusrule.yaml | ||
configMapGenerator: | ||
- name: flux-instance-helm-values | ||
files: | ||
- ./values.yaml | ||
generatorOptions: | ||
disableNameSuffixHash: true |
File renamed without changes.
91 changes: 91 additions & 0 deletions
91
kubernetes/apps/flux-system/flux-operator/instance/resources/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
instance: | ||
cluster: | ||
networkPolicy: false | ||
components: | ||
- source-controller | ||
- kustomize-controller | ||
- helm-controller | ||
- notification-controller | ||
sync: | ||
kind: GitRepository | ||
name: k8s-gitops | ||
url: ssh://[email protected]/buroa/k8s-gitops | ||
ref: refs/heads/master | ||
path: kubernetes/flux | ||
pullSecret: github-deploy-key | ||
kustomize: | ||
patches: | ||
# Increase the number of workers and limits | ||
# Ref: https://fluxcd.io/flux/installation/configuration/vertical-scaling/#increase-the-number-of-workers-and-limits | ||
- patch: | | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --concurrent=10 | ||
- 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: all | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
resources: | ||
limits: | ||
memory: 2Gi | ||
target: | ||
kind: Deployment | ||
name: (kustomize-controller|helm-controller|source-controller) | ||
# Enable in-memory kustomize builds | ||
# Ref: https://fluxcd.io/flux/installation/configuration/vertical-scaling/#enable-in-memory-kustomize-builds | ||
- patch: | | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --concurrent=20 | ||
- op: replace | ||
path: /spec/template/spec/volumes/0 | ||
value: | ||
name: temp | ||
emptyDir: | ||
medium: Memory | ||
target: | ||
kind: Deployment | ||
name: kustomize-controller | ||
# Enable Helm repositories caching | ||
# Ref: https://fluxcd.io/flux/installation/configuration/vertical-scaling/#enable-helm-repositories-caching | ||
- patch: | | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --helm-cache-max-size=10 | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --helm-cache-ttl=60m | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --helm-cache-purge-interval=5m | ||
target: | ||
kind: Deployment | ||
name: source-controller | ||
# Flux near OOM detection for Helm | ||
# Ref: https://fluxcd.io/flux/installation/configuration/helm-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.