16
clusters/kairos/longhorn/helmrelease.yaml
Normal file
16
clusters/kairos/longhorn/helmrelease.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: longhorn
|
||||||
|
spec:
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: longhorn
|
||||||
|
reconcileStrategy: ChartVersion
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: longhorn-repo
|
||||||
|
version: 1.6.2
|
||||||
|
interval: 1m0s
|
||||||
|
targetNamespace: longhorn-system
|
||||||
8
clusters/kairos/longhorn/helmrepo.yaml
Normal file
8
clusters/kairos/longhorn/helmrepo.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: longhorn-repo
|
||||||
|
spec:
|
||||||
|
interval: 1m0s
|
||||||
|
url: https://charts.longhorn.io
|
||||||
16
clusters/kairos/longhorn/ingress.yaml
Normal file
16
clusters/kairos/longhorn/ingress.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: longhorn
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
routes:
|
||||||
|
- match: Host(`longhorn.k3s`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: longhorn-frontend
|
||||||
|
namespace: longhorn-system
|
||||||
|
nativeLB: true
|
||||||
|
kind: Service
|
||||||
|
port: 80
|
||||||
8
clusters/kairos/longhorn/kustomization.yaml
Normal file
8
clusters/kairos/longhorn/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: longhorn-system
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- helmrepo.yaml
|
||||||
|
- helmrelease.yaml
|
||||||
|
- ingress.yaml
|
||||||
4
clusters/kairos/longhorn/namespace.yaml
Normal file
4
clusters/kairos/longhorn/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: longhorn-system
|
||||||
Reference in New Issue
Block a user