Root cause: Longhorn refuses to schedule replicas on nodes without spec.name field. talos-cp-1 was auto-discovered (has spec.name), but cp-2/cp-3 were manually created CRDs without it. Error: 'no node name provided to check node down or deleted' Fix: Add spec.name matching metadata.name for both nodes.
36 lines
791 B
YAML
36 lines
791 B
YAML
# Longhorn Node CRDs for cp-2 and cp-3.
|
|
# These nodes have the control-plane taint, so Longhorn doesn't auto-discover them.
|
|
# Explicit Node CRDs + the taint-toleration setting enable storage across all 3 nodes.
|
|
---
|
|
apiVersion: longhorn.io/v1beta2
|
|
kind: Node
|
|
metadata:
|
|
name: talos-cp-2
|
|
namespace: longhorn-system
|
|
spec:
|
|
name: talos-cp-2
|
|
allowScheduling: true
|
|
disks:
|
|
default-disk:
|
|
allowScheduling: true
|
|
path: /var/lib/longhorn
|
|
storageReserved: 0
|
|
tags: []
|
|
tags: []
|
|
---
|
|
apiVersion: longhorn.io/v1beta2
|
|
kind: Node
|
|
metadata:
|
|
name: talos-cp-3
|
|
namespace: longhorn-system
|
|
spec:
|
|
name: talos-cp-3
|
|
allowScheduling: true
|
|
disks:
|
|
default-disk:
|
|
allowScheduling: true
|
|
path: /var/lib/longhorn
|
|
storageReserved: 0
|
|
tags: []
|
|
tags: []
|