mirror of
https://github.com/fluxcd/flux2-monitoring-example.git
synced 2024-12-14 10:47:31 +00:00
Refactor structure to conform to Flux bootstrap
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
acd76e11c6
commit
1705e7b9f4
16 changed files with 55 additions and 0 deletions
1
clusters/test/flux-system/gotk-components.yaml
Normal file
1
clusters/test/flux-system/gotk-components.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
# This file will be generated automatically by flux boostrap.
|
1
clusters/test/flux-system/gotk-sync.yaml
Normal file
1
clusters/test/flux-system/gotk-sync.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
# This file will be generated automatically by flux boostrap.
|
19
clusters/test/flux-system/kustomization.yaml
Normal file
19
clusters/test/flux-system/kustomization.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gotk-components.yaml
|
||||
- gotk-sync.yaml
|
||||
labels:
|
||||
- pairs:
|
||||
toolkit.fluxcd.io/tenant: sre-team
|
||||
patches:
|
||||
- patch: |
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/args/-
|
||||
value: --concurrent=20
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/args/-
|
||||
value: --requeue-dependency=5s
|
||||
target:
|
||||
kind: Deployment
|
||||
name: "(kustomize-controller|helm-controller|source-controller)"
|
34
clusters/test/monitoring.yaml
Normal file
34
clusters/test/monitoring.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: monitoring-controllers
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h
|
||||
retryInterval: 2m
|
||||
timeout: 10m
|
||||
prune: true
|
||||
wait: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./monitoring/controllers
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: monitoring-configs
|
||||
namespace: flux-system
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: monitoring-controllers
|
||||
interval: 1h
|
||||
retryInterval: 2m
|
||||
timeout: 5m
|
||||
prune: true
|
||||
wait: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./monitoring/configs
|
Loading…
Reference in a new issue