Change longhorn default path

This commit is contained in:
2024-08-06 01:23:38 +01:00
parent 006179d1d8
commit aaa8cd17fb
3 changed files with 15 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2 apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
@@ -14,3 +13,6 @@ spec:
version: 1.6.2 version: 1.6.2
interval: 1m0s interval: 1m0s
targetNamespace: longhorn targetNamespace: longhorn
values:
defaultReplicaCount: 2
defaultDataPath: /var/lib/longhorn-example/

View File

@@ -1,4 +1,3 @@
---
apiVersion: source.toolkit.fluxcd.io/v1 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:

View File

@@ -23,8 +23,15 @@ Host 192.168.1.101
IdentityFile ~/.ssh/kairos IdentityFile ~/.ssh/kairos
``` ```
## Kubectl
SSH into the server, and grab the kubeconfig with `sudo cat /etc/rancher/k3s/k3s.yaml`.
Drop the user and cluster into your config and create a context to have that user and cluster
## Flux CD ## Flux CD
Install flux and everything in this repo with the following:
- `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` - `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 ## DNS
@@ -37,3 +44,7 @@ We need to point a dns server to the server so we can access things via hostname
- In overrides, add the host as `*`, domain as `k3s` and value as the ip address of the server - 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) You should be able to access `http://traefik.k3s:9000/dashboard#/` (at the time of writing, looking to route this properly)
## Grafana
Grab the admin user password from the `monitoring-grafana` secret