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

Labels support #316

Open
aravindavk opened this issue Mar 7, 2023 · 0 comments
Open

Labels support #316

aravindavk opened this issue Mar 7, 2023 · 0 comments

Comments

@aravindavk
Copy link
Member

Region

This label is set for nodes. While creating the Storage pool, don't allow the creation if the export directories are from different regions.

Support setting this label while adding a node or as a separate command.

kadalu node add server1.example.com --region blr1
kadalu node region blr1

General label support:

Add label to any resource. Some of the labels are inherited or automatic(Ex: region label of Storage pool and volume is inherited from the nodes, pool type as label, FS type as label to the Storage unit).

kadalu label add <resource> <identifier> <label1>,<label2> ..
kadalu label add node server1.example.com os=arm64,lowRAM
kadalu label add pool pool1 fast,ssd
kadalu label add volume vol1 app1
kadalu label add storage-unit server1:/exports/s1 ssd

List all the labels of an resource

kadalu label list <resource> <identifier>
kadalu label list pool pool1

Remove labels

kadalu label remove <resource> <identifier> <label1>,<label2>..
kadalu label remove pool pool1 fast

Reset all the labels (Remove all labels)

kadalu label reset <resource> <identifier>
kadalu label reset pool pool1

These labels will be used in various places like:

  • Storage pool create validations
  • Automatic provisioning the volumes. Ex: kadalu volume create vol1 -s 10G --filter fast,mirror3 automatically selects the Storage pool that satisfies the filters and creates a volume out of it.
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

No branches or pull requests

1 participant