diff --git a/clusters/kairos/longhorn/helmrelease.yaml b/clusters/kairos/longhorn/helmrelease.yaml index d2db652..d13c4a3 100644 --- a/clusters/kairos/longhorn/helmrelease.yaml +++ b/clusters/kairos/longhorn/helmrelease.yaml @@ -1,4 +1,3 @@ ---- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: @@ -13,4 +12,7 @@ spec: name: longhorn-repo version: 1.6.2 interval: 1m0s - targetNamespace: longhorn \ No newline at end of file + targetNamespace: longhorn + values: + defaultReplicaCount: 2 + defaultDataPath: /var/lib/longhorn-example/ \ No newline at end of file diff --git a/clusters/kairos/longhorn/helmrepo.yaml b/clusters/kairos/longhorn/helmrepo.yaml index 8bb32de..5da584a 100644 --- a/clusters/kairos/longhorn/helmrepo.yaml +++ b/clusters/kairos/longhorn/helmrepo.yaml @@ -1,4 +1,3 @@ ---- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: diff --git a/readme.md b/readme.md index 0e0a425..d184af0 100644 --- a/readme.md +++ b/readme.md @@ -23,8 +23,15 @@ Host 192.168.1.101 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 +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` ## 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 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