adding longhorn
This commit is contained in:
parent
f42e8eed31
commit
ea18a7ff26
9
components/storage/configs/base/longhorn/ingress.yaml
Normal file
9
components/storage/configs/base/longhorn/ingress.yaml
Normal 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
|
||||
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: storage
|
||||
resources:
|
||||
- ingress.yaml
|
||||
@ -1,3 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
resources: []
|
||||
# - ../base/longhorn
|
||||
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: storage
|
||||
resources:
|
||||
- longhorn.yaml
|
||||
37
components/storage/controllers/base/longhorn/longhorn.yaml
Normal file
37
components/storage/controllers/base/longhorn/longhorn.yaml
Normal 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
|
||||
|
||||
@ -3,6 +3,7 @@ kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- ../base/nfs
|
||||
- ../base/longhorn
|
||||
secretGenerator:
|
||||
- name: nfs-provisioner-config
|
||||
namespace: storage
|
||||
|
||||
Loading…
Reference in New Issue
Block a user