34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
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.
|
|
#
|
|
# `spec.disks` is deliberately absent. Longhorn owns disk identity: it names the
|
|
# entry itself (`default-disk-080400000000`, not `default-disk`) and writes
|
|
# `storageReserved`, `diskType` and `evictionRequested` into it. Declaring a
|
|
# `default-disk` key here never matched the live one, so the Application sat
|
|
# OutOfSync and selfHeal kept trying to add a SECOND disk record pointing at the
|
|
# same /var/lib/longhorn path — which is worse than the drift it was fixing.
|
|
#
|
|
# What these objects are actually for is `allowScheduling: true` on tainted
|
|
# control-plane nodes. That is all they need to declare.
|
|
---
|
|
apiVersion: longhorn.io/v1beta2
|
|
kind: Node
|
|
metadata:
|
|
name: talos-cp-2
|
|
namespace: longhorn-system
|
|
spec:
|
|
name: talos-cp-2
|
|
allowScheduling: true
|
|
tags: []
|
|
---
|
|
apiVersion: longhorn.io/v1beta2
|
|
kind: Node
|
|
metadata:
|
|
name: talos-cp-3
|
|
namespace: longhorn-system
|
|
spec:
|
|
name: talos-cp-3
|
|
allowScheduling: true
|
|
tags: []
|