https://rancher.com/ logo
Title
g

great-photographer-94826

01/12/2023, 11:38 AM
Hi! Based on the Longhorn documentation (https://longhorn.io/docs/1.4.0/volumes-and-nodes/scheduling/#the-node-and-zone-selection-stage), I understand that it is possible for Longhorn to create replicas by creating replicas of a volume so that they are placed on separate sites. For example, if I'm using a three-sites design, with a setting of "defaultClassReplicaCount: 3", each site will have one replica. My question is, how can I tell Longhorn which node belongs to which site? Can the Kubernetes zone tag (https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesiozone) be suitable for this, or does it need to be used in a separate tag for Longhorn?
1
It's work with "topology.kubernetes.io/zone" label.
👍 2