feat: Add longhorn to dolo

This commit is contained in:
Tony Du 2025-02-04 22:26:04 -08:00
parent 75dbc56ce5
commit 2edf4cf9d9
6 changed files with 102 additions and 0 deletions

View File

@ -32,6 +32,7 @@ spec:
name: flux-system
path: ./k8s/infrastructure/02
prune: true
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
@ -50,6 +51,26 @@ spec:
name: flux-system
path: ./k8s/infrastructure/03
prune: true
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-04
namespace: flux-system
spec:
dependsOn:
- name: infrastructure-03
interval: 1h
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./k8s/infrastructure/04
prune: true
wait: true
# ---
# apiVersion: kustomize.toolkit.fluxcd.io/v1

View File

@ -4,4 +4,5 @@ kind: Kustomization
resources:
- external-secrets.yaml
- cert-manager.yaml
- longhorn.yaml
- traefik.yaml

View File

@ -0,0 +1,32 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: longhorn
namespace: longhorn-system
spec:
interval: 1m
url: https://charts.longhorn.io
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: longhorn
namespace: longhorn-system
spec:
interval: 10m
chart:
spec:
chart: longhorn
sourceRef:
kind: HelmRepository
name: longhorn
namespace: longhorn-system
interval: 10m

View File

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

View File

@ -0,0 +1,38 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: cattle-system
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: rancher-stable
namespace: cattle-system
spec:
interval: 1m
url: https://releases.rancher.com/server-charts/stable
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: rancher
namespace: cattle-system
spec:
interval: 10m
chart:
spec:
chart: rancher
sourceRef:
kind: HelmRepository
name: rancher-stable
namespace: cattle-system
interval: 10m
values:
bootstrapPassword: 'admin'
hostname: rancher.dolo.mnke.org
ingress:
enabled: true
ingressClassName: traefik

View File

@ -0,0 +1,4 @@
# k8s Infrastructure
Installing all of these manifests will get Cert Manager, an External Secrets
operator, and Traefik all set up.