Add longhorn

This commit is contained in:
SeanOMik 2023-04-02 23:07:40 -04:00
parent bab5543e4d
commit b1249c5d48
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
7 changed files with 61 additions and 2 deletions

View File

@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./networking - ./networking
- ./storage

View File

@ -5,4 +5,4 @@ resources:
- ./traefik-secrets.sops.yaml - ./traefik-secrets.sops.yaml
- ./helm-repository.yaml - ./helm-repository.yaml
- ./helm-release.yaml - ./helm-release.yaml
- ./dashboard-ingress.yaml #- ./dashboard-ingress.yaml

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./longhorn

View File

@ -0,0 +1,25 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: longhorn-charts
namespace: flux-system
spec:
interval: 1m
url: https://charts.longhorn.io
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: longhorn
namespace: longhorn-system
spec:
interval: 5m
chart:
spec:
chart: longhorn
version: '1.4.x'
sourceRef:
kind: HelmRepository
name: longhorn-charts
namespace: flux-system
interval: 1m

View File

@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-ingress
namespace: longhorn-system
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
rules:
- host: "longhorn.***REMOVED***"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: longhorn
port:
number: 80

View File

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

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system