feat: Add longhorn to dolo
This commit is contained in:
parent
75dbc56ce5
commit
2edf4cf9d9
@ -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
|
||||
|
@ -4,4 +4,5 @@ kind: Kustomization
|
||||
resources:
|
||||
- external-secrets.yaml
|
||||
- cert-manager.yaml
|
||||
- longhorn.yaml
|
||||
- traefik.yaml
|
||||
|
32
k8s/infrastructure/01/longhorn.yaml
Normal file
32
k8s/infrastructure/01/longhorn.yaml
Normal 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
|
6
k8s/infrastructure/04/kustomization.yaml
Normal file
6
k8s/infrastructure/04/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- rancher.yaml
|
||||
|
38
k8s/infrastructure/04/rancher.yaml
Normal file
38
k8s/infrastructure/04/rancher.yaml
Normal 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
|
4
k8s/infrastructure/README.md
Normal file
4
k8s/infrastructure/README.md
Normal 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.
|
Loading…
x
Reference in New Issue
Block a user