Skip to content

Commit

Permalink
How to set Topology spread constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
votdev committed Oct 10, 2024
1 parent 5096ff5 commit f9e48d9
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/host/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,20 @@ The replica data would be rebuilt to another disk automatically to keep the high
4. Select **Save** to remove the disk.


## Topology spread constraints

_Available as of v1.1.0_

[Node labels](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#node-labels) are used to identify the topology domains that each node is in. You can configure labels such as [`topology.kubernetes.io/zone`](https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesiozone) on the Harvester UI.

1. Go to the **Hosts** screen.
1. Locate the target node in the list, and then select **⋮ > Edit Config**.
1. On the **Labels** tab, click **Add Label** and then specify the label `topology.kubernetes.io/zone` and a value.
1. Click **Save**.

The label is automatically synchronized with the corresponding Longhorn node.


## Ksmtuned Mode

_Available as of v1.1.0_
Expand Down
14 changes: 14 additions & 0 deletions versioned_docs/version-v1.1/host/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,20 @@ The replica data would be rebuilt to another disk automatically to keep the high
4. Select **Save** to remove the disk.


## Topology spread constraints

_Available as of v1.1.0_

[Node labels](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#node-labels) are used to identify the topology domains that each node is in. You can configure labels such as [`topology.kubernetes.io/zone`](https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesiozone) on the Harvester UI.

1. Go to the **Hosts** screen.
1. Locate the target node in the list, and then select **⋮ > Edit Config**.
1. On the **Labels** tab, click **Add Label** and then specify the label `topology.kubernetes.io/zone` and a value.
1. Click **Save**.

The label is automatically synchronized with the corresponding Longhorn node.


## Ksmtuned Mode

_Available as of v1.1.0_
Expand Down
14 changes: 14 additions & 0 deletions versioned_docs/version-v1.2/host/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,20 @@ The replica data would be rebuilt to another disk automatically to keep the high
4. Select **Save** to remove the disk.


## Topology spread constraints

_Available as of v1.1.0_

[Node labels](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#node-labels) are used to identify the topology domains that each node is in. You can configure labels such as [`topology.kubernetes.io/zone`](https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesiozone) on the Harvester UI.

1. Go to the **Hosts** screen.
1. Locate the target node in the list, and then select **⋮ > Edit Config**.
1. On the **Labels** tab, click **Add Label** and then specify the label `topology.kubernetes.io/zone` and a value.
1. Click **Save**.

The label is automatically synchronized with the corresponding Longhorn node.


## Ksmtuned Mode

_Available as of v1.1.0_
Expand Down
14 changes: 14 additions & 0 deletions versioned_docs/version-v1.3/host/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,20 @@ The replica data would be rebuilt to another disk automatically to keep the high
4. Select **Save** to remove the disk.


## Topology spread constraints

_Available as of v1.1.0_

[Node labels](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#node-labels) are used to identify the topology domains that each node is in. You can configure labels such as [`topology.kubernetes.io/zone`](https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesiozone) on the Harvester UI.

1. Go to the **Hosts** screen.
1. Locate the target node in the list, and then select **⋮ > Edit Config**.
1. On the **Labels** tab, click **Add Label** and then specify the label `topology.kubernetes.io/zone` and a value.
1. Click **Save**.

The label is automatically synchronized with the corresponding Longhorn node.


## Ksmtuned Mode

_Available as of v1.1.0_
Expand Down

0 comments on commit f9e48d9

Please sign in to comment.