Automate Setting Node Labels
aishwaryabk opened this issue · 3 comments
As per the discussion on slack (https://ibm-systems-power.slack.com/archives/CLB0VTQF5/p1652797047535559):
There are some well-known k8s labels that the RHACM UI uses (failure-domain.beta.kubernetes.io/region, failure-domain.beta.kubernetes.io/zone, and beta.kubernetes.io/instance-type) that could be set using values from the Terraform var.tfvars file.
According to the docs:
https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesioregion
Ref:
https://ibm-systems-power.slack.com/archives/C01JKQWLK7X/p1652794487832839
Raised PR: ocp-power-automation/ocp4-playbooks#163
@aishwaryabk Node labels should be a map variable so that user can add more labels in future without much or no code changes. I see in the PR you have hardcoded the labels.
@yussufsh Should we automate the 3 labels (zone, region & instance-type) and then add more custom labels via nodes_labels
?