first commit
This commit is contained in:
commit
b6890fa29d
7 changed files with 74 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# k3s-cluster-gitops
|
||||
|
||||
GitOps-Repository für K3s-Cluster mit Flux, Longhorn und Monitoring (Prometheus/Grafana).
|
||||
3
apps/README.md
Normal file
3
apps/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Applikationen
|
||||
|
||||
Hier können später eigene Applikationen als HelmRelease oder Manifeste abgelegt werden.
|
||||
14
clusters/production/kustomize.yaml
Normal file
14
clusters/production/kustomize.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: production
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
path: ./infrastructure
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
validation: client
|
||||
19
infrastructure/longhorn/helmrelease.yaml
Normal file
19
infrastructure/longhorn/helmrelease.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
releaseName: longhorn
|
||||
chart:
|
||||
spec:
|
||||
chart: longhorn
|
||||
version: "1.6.1"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: longhorn
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
install:
|
||||
createNamespace: true
|
||||
values: {}
|
||||
8
infrastructure/longhorn/helmrepository.yaml
Normal file
8
infrastructure/longhorn/helmrepository.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: flux-system
|
||||
spec:
|
||||
url: https://charts.longhorn.io
|
||||
interval: 10m
|
||||
19
infrastructure/monitoring/helmrelease.yaml
Normal file
19
infrastructure/monitoring/helmrelease.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: kube-prometheus-stack
|
||||
namespace: monitoring
|
||||
spec:
|
||||
releaseName: kube-prometheus-stack
|
||||
chart:
|
||||
spec:
|
||||
chart: kube-prometheus-stack
|
||||
version: "56.0.0"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: prometheus-community
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
install:
|
||||
createNamespace: true
|
||||
values: {}
|
||||
8
infrastructure/monitoring/helmrepository.yaml
Normal file
8
infrastructure/monitoring/helmrepository.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: prometheus-community
|
||||
namespace: flux-system
|
||||
spec:
|
||||
url: https://prometheus-community.github.io/helm-charts
|
||||
interval: 10m
|
||||
Loading…
Add table
Add a link
Reference in a new issue