adding longhorn

This commit is contained in:
V 2025-12-06 18:49:29 +00:00
parent f42e8eed31
commit ea18a7ff26
6 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,9 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-ingress
namespace: stprage
spec:
ingressClassName: nginx
rules:
- host: longhorn.k8s.local

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: storage
resources:
- ingress.yaml

View File

@ -1,3 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: [] resources: []
# - ../base/longhorn

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: storage
resources:
- longhorn.yaml

View File

@ -0,0 +1,37 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: longhorn
namespace: storage
spec:
interval: 1h
url: https://charts.longhorn.io
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: longhorn
namespace: storage
spec:
serviceAccountName: flux
interval: 15m
timeout: 1h
chart:
spec:
chart: longhorn
version: "v1.10.1 " # {"$imagepolicy": "flux-system:longhorn:tag"}
sourceRef:
kind: HelmRepository
name: longhorn
interval: 5m
install:
crds: Create
timeout: 9m
remediation:
retries: 3
upgrade:
crds: CreateReplace
timeout: 9m
remediation:
retries: 3

View File

@ -3,6 +3,7 @@ kind: Kustomization
resources: resources:
- ../base - ../base
- ../base/nfs - ../base/nfs
- ../base/longhorn
secretGenerator: secretGenerator:
- name: nfs-provisioner-config - name: nfs-provisioner-config
namespace: storage namespace: storage