Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Added a cmd for topology labels in Mayastor Configuration document #489

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

balaharish7
Copy link
Contributor

No description provided.

@@ -69,6 +69,11 @@ EOF
```

The diskpool is created with labels to satisfy `poolHasTopologyKey` and `poolAffinityTopologyLabel` parameters of the storage class. This helps place the replicas of volume based on the pool labels.
You can use the plugin to add labels to pools that do not have topology labels:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content seems fine, but the intent is missing. Why / when does a user need to do this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inorder to place the replicas of a volume based on the pool labels i.e. to satisfy poolHasTopologyKey and poolAffinityTopologyLabel parameters of the storage class , the pools must be labelled with the topology field.
This can be achieved in two ways.

  1. The existing pools can be labelled using the plugin : (Note : There will not be any effect on all the pre-existing volumes)
kubectl mayastor label pool pool-on-node-1 topology-key=topology-value -n openebs
  1. Create a new pool with the labels

Example DiskPool Definition with Labels

cat <<EOF | kubectl create -f -
apiVersion: "openebs.io/v1beta2"
kind: DiskPool
metadata:
  name: pool-on-node-1
  namespace: openebs
spec:
  node: workernode-1-hostname
  disks: ["/dev/disk/by-id/<id>"]
  topology:
    labelled:
      topology-key: topology-value
EOF

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avishnu Does this seems ok ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok, change the order of (1) and (2).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggested changes are done :)

Copy link
Member

@avishnu avishnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@balaharish7 balaharish7 merged commit 0686816 into openebs:main Oct 7, 2024
11 checks passed
@balaharish7 balaharish7 deleted the topo branch October 7, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants