Files
homelab/infra/kubernetes/platform/longhorn/node-disks.yaml
Julia McGhee c6ce40a557 Add Ansible storage role for NVMe setup and Longhorn dual-disk config
Automates LV expansion, NVMe mount, and Longhorn node disk tagging
(hdd/nvme) via Ansible instead of Kustomize-managed manifests.
2026-03-21 13:19:04 +00:00

27 lines
740 B
YAML

# Patches the Longhorn Node to configure two disks with tags:
# - default-disk (HDD at /var/lib/longhorn/) tagged "hdd"
# - nvme-disk (NVMe at /mnt/nvme-storage/longhorn/) tagged "nvme"
#
# Apply after Longhorn is running and the NVMe is mounted:
# kubectl apply -f node-disks.yaml
apiVersion: longhorn.io/v1beta2
kind: Node
metadata:
name: catherby
namespace: longhorn-system
spec:
allowScheduling: true
disks:
hdd:
allowScheduling: true
path: /var/lib/longhorn/
storageReserved: 32212254720 # 30Gi reserved for system
tags:
- hdd
nvme:
allowScheduling: true
path: /mnt/nvme-storage/longhorn/
storageReserved: 10737418240 # 10Gi reserved
tags:
- nvme