feat: migrate observability stack to flux gitops
This commit is contained in:
12
clusters/prod/flux-system/gitrepository-platform.yaml
Normal file
12
clusters/prod/flux-system/gitrepository-platform.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: platform
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m
|
||||
ref:
|
||||
branch: main
|
||||
url: ssh://git@tea.michaelfisher.tech/HomeInfra/HetznerTerra.git
|
||||
secretRef:
|
||||
name: flux-system
|
||||
17
clusters/prod/flux-system/kustomization-apps.yaml
Normal file
17
clusters/prod/flux-system/kustomization-apps.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: apps
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: platform
|
||||
path: ./apps
|
||||
dependsOn:
|
||||
- name: infrastructure
|
||||
wait: true
|
||||
timeout: 5m
|
||||
suspend: true
|
||||
14
clusters/prod/flux-system/kustomization-infrastructure.yaml
Normal file
14
clusters/prod/flux-system/kustomization-infrastructure.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infrastructure
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: platform
|
||||
path: ./infrastructure
|
||||
wait: true
|
||||
timeout: 5m
|
||||
6
clusters/prod/flux-system/kustomization.yaml
Normal file
6
clusters/prod/flux-system/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gitrepository-platform.yaml
|
||||
- kustomization-infrastructure.yaml
|
||||
- kustomization-apps.yaml
|
||||
4
clusters/prod/kustomization.yaml
Normal file
4
clusters/prod/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- flux-system
|
||||
Reference in New Issue
Block a user