feat: add longhorn

This commit is contained in:
2024-08-23 17:53:28 -04:00
parent 0d076c4c13
commit 36ce4d96f1
5 changed files with 47 additions and 0 deletions

16
cluster/base/infra.yaml Normal file
View File

@@ -0,0 +1,16 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infra-controllers
namespace: flux-system
spec:
interval: 1h0m0s
path: ./infra/controllers
prune: true
retryInterval: 1m0s
sourceRef:
kind: GitRepository
name: flux-system
timeout: 5m0s
wait: true

View File

@@ -104,6 +104,7 @@
pkgs.kubernetes-helm
pkgs.helmfile
pkgs.fluxcd
pkgs.kustomize
];
};
};

View File

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

View File

@@ -0,0 +1,25 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: longhorn-repo
namespace: longhorn-system
spec:
interval: 1m0s
url: https://charts.longhorn.io
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: longhorn-release
namespace: longhorn-system
spec:
chart:
spec:
chart: longhorn
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: longhorn-release
version: v1.7.0
interval: 1m0s