This message was deleted.
# longhorn-storage
a
This message was deleted.
n
1. I think it means when deploy a pod and pvc, then the Longhorn volume related workloads will only launched on the nodes which are labeled. In your case, it will always create workloads, e.g., replicas on this two nodes. 2. Yes, the document is still workable with using the latest version:
1.4.1
and the document is https://longhorn.io/docs/1.4.1/advanced-resources/deploy/node-selector/ 3. As mentioned in the official document, the best practice to deploy Longhorn in a 3 nodes environment. https://longhorn.io/docs/1.4.1/best-practices/#minimum-recommended-hardware
👍 1
s
Yeah, we're actually going to be setting the replicas to 1 because we dont actually need replication. We're basically looking for a more dynamic alternative to https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner without all the pitfalls of some of the other dynamic provisioners that cant enforce pvc/pv quotas
bit outside the typical use case for longhorn, but lacking better options
a
maybe longhorn strict-local disk could match your requirement (still longhorn managed, but local replica access ? ) https://longhorn.io/docs/1.4.1/high-availability/data-locality/#data-locality-settings
@narrow-egg-98197 wrt to node selector, still unclear for me. In my context, all my nodes have longhorn components. However i want to define a storageclass targeting only certain nodes to host the related replicas.
I guess https://longhorn.io/docs/1.4.1/volumes-and-nodes/storage-tags/#kubernetes is close to my solution. Using Nodes and Disks labels. The documentation only mentions longhorn ui usage. Is it possible to apply the labels on longhorn CR with kubectl apply (on Node ?)
240 Views