I migrated my cluster from OpenEBS to Longhorn so you don’t have to. I saved ~70W in the process and my NUCs fans are no longer gasping for air. Here are the installation steps found in my video:
Install Dependencies
brew install talhelper sops age
Generate Secrets
talhelper gensecret > talsecret.sops.yaml
mkdir -p "$HOME/Library/Application Support/sops/age"
age-keygen -o "$HOME/Library/Application Support/sops/age/keys.txt"
touch .sops.yaml
.sops.yaml:
---
creation_rules:
- age: >-
<public-key>
sops -e -i talsecret.sops.yaml
Generate Cluster Config
touch talconfig.yaml
talhelper genconfig
talosctl apply-config -n <ip-address> --file <node-file-name>.yaml --insecure
Bootstrap Cluster
talosctl bootstrap --nodes x.x.x.x --endpoints x.x.x.x \
--talosconfig=talosconfig
Get Kubeconfig
talosctl kubeconfig --nodes x.x.x.x --talosconfig=talosconfig
Create and Label ‘longhorn-system’ Namespace
kubectl create ns longhorn-system
kubectl label namespace longhorn-system pod-security.kubernetes.io/enforce=privileged
Install Longhorn
helm repo add longhorn https://charts.longhorn.io
helm repo update
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --version 1.6.2
k port-forward service/longhorn-frontend 50483:80
Code from this installation can be found on GitHub.