feat: add longhorn
This commit is contained in:
16
cluster/base/infra.yaml
Normal file
16
cluster/base/infra.yaml
Normal 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
|
||||
@@ -104,6 +104,7 @@
|
||||
pkgs.kubernetes-helm
|
||||
pkgs.helmfile
|
||||
pkgs.fluxcd
|
||||
pkgs.kustomize
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
5
infra/controllers/kustomization.yaml
Normal file
5
infra/controllers/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- metallb.yaml
|
||||
- longhorn.yaml
|
||||
25
infra/controllers/longhorn.yaml
Normal file
25
infra/controllers/longhorn.yaml
Normal 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
|
||||
Reference in New Issue
Block a user