Add longhorn
This commit is contained in:
16
clusters/kairos/longhorn/helmrelease.yaml
Normal file
16
clusters/kairos/longhorn/helmrelease.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
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-repo
|
||||
version: 1.6.0
|
||||
interval: 1m0s
|
||||
9
clusters/kairos/longhorn/helmrepo.yaml
Normal file
9
clusters/kairos/longhorn/helmrepo.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: longhorn-repo
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
url: https://charts.longhorn.io
|
||||
6
clusters/kairos/longhorn/kustomization.yaml
Normal file
6
clusters/kairos/longhorn/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: kube-system
|
||||
resources:
|
||||
- helmrepo.yaml
|
||||
- helmrelease.yaml
|
||||
13
readme.md
13
readme.md
@@ -8,8 +8,6 @@
|
||||
|
||||
# Kairos
|
||||
|
||||
Kairos automatically includes Traefik
|
||||
|
||||
- Grab the latest image from https://github.com/kairos-io/kairos/releases, the image should have the format `kairos-debian-bookworm-standard-amd64-generic-v3.1.1-k3sv1.30.2+k3s1`.
|
||||
The main things we're looking for are the latest debian, standard, amd64, then the versions of kairos (v3.1.1) and k3s (1.30.2).
|
||||
- Burn to usb
|
||||
@@ -28,3 +26,14 @@ Host 192.168.1.101
|
||||
## Flux CD
|
||||
|
||||
- `flux bootstrap git --private-key-file=/config/.ssh/gitea --url ssh://git@gitea.home.joemonk.co.uk:2222/joe/gitops.git --branch main --path=clusters/kairos`
|
||||
|
||||
## DNS
|
||||
|
||||
We need to point a dns server to the server so we can access things via hostname rather than needing complex routing.
|
||||
|
||||
### In OPNSense
|
||||
|
||||
- Make sure Services > UnboundDNS is active and working
|
||||
- In overrides, add the host as `*`, domain as `k3s` and value as the ip address of the server
|
||||
|
||||
You should be able to access `http://traefik.k3s:9000/dashboard#/` (at the time of writing, looking to route this properly)
|
||||
|
||||
Reference in New Issue
Block a user