Kubernetes Tags - Labels
Overview
All Kubernetes nodes have Tags, which originally is called Labels. To perform the search for the nodes by their Tags Discovery provides additional tag attributes.
- tag_set: the original block of Tags stored as dict
tag_set := {"key1" : "value1",
"key2" : "value2",
"key3" : "value3"}
2. tags: the list of tag keys allows to perform a search for nodes that contain specific keys in the attributes.
tags := [key1", "key2", "key3"]
3. tag_<node_name>: The attribute "tag_<tag_name>" with a particular value and every key is assigned it to the node attribute with a value attribute with appropriate values.
tag_key1 := "value1"
tag_key2 := "value2"
tag_key3 := "value3"
Model
Attribute | Description |
---|---|
tag_set | A dictionary of all <tag_name> := <tag_value> pairs. Visible in the UI. |
tags | A list of all <tag_name>. |
tag_<tag_name> | All tag_<tag_name> := <tag_value>, where <tag_name> can only contain letters, digits and the underscore character '_'. Special characters, and ':', '-', ' ' must be replaced with an underscore. |
Sources
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.