-
Notifications
You must be signed in to change notification settings - Fork 78
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
Conversation
Signed-off-by: Bala Harish <[email protected]>
@@ -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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
- 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
- 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
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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 :)
Signed-off-by: Bala Harish <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.