-
Notifications
You must be signed in to change notification settings - Fork 260
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
Add Openstack compute labels to k8s nodes nodes #1605
Comments
wouldn't this work for your case => https://cluster-api.sigs.k8s.io/developer/architecture/controllers/metadata-propagation.html#machine |
Thank you. Possibly, although I am missing how the label gets onto the machine. I am aware that we are running quite an old version so maybe this has already been solved, but when I check the available labels on the machine, I only see:
The OSM has the same labels as above. Do more recent versions of CAPO add labels for the instance compute host? |
The above is a capi feature introduced on capi 1.4.0 (IIRC). Basically it allows you to propagate labels/annotations. The same page explains how it works and which labels/annotations are propagated from which resources to which. For example from here we are adding labels to In our case we use that to set the role of nodes Code:
and then the nodes in the cluster:
These labels/annotations are updated in-place and you dont need to roll-out new machines |
I think we are doing this already with some of our labels that we apply in the CAPI cluster object. It's good to know that we can also apply labels in a similar way to the |
This is a valid use case from my perspective, however the OpenStack API on a tenant level only gives you |
From my understanding of how spread topologies are working in k8s we just need a unique representation of the host so that workloads can be scheduled on different hosts. So yes, I think it would but I’m going to have another read 👍 |
I wonder if this would fit better in cloud-provider-openstack, which IIRC is already adding the other topology labels? |
I opened kubernetes/cloud-provider#67 to discuss adding this capability to the cloud provider. We could also do this in CAPO, but we'd have to add a custom label to the machine after it has been created. |
CPO CSI has this but OCCM doesn't ..
saw this issue, but you mentioned it's |
I can't find where I read the discussion, but from memory what was rejected was defining well-known topology labels beyond 'region' and 'zone'. IIRC the concern was that there is such a wide variety of potential topologies it would quickly pollute the set of well-known labels. I don't believe the concept of a hypervisor topology label was rejected, and certainly there were a lot of users asking for it. There was just no desire to define a well-known label for it, hence the label would be specific to CPO. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
I think, that you meant the discussion in kubernetes/kubernetes#75274 |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can someone from here please check the related OCCM issue/PR kubernetes/cloud-provider-openstack#2579? |
/kind feature
Describe the solution you'd like
When creating k8s worker nodes we would like to see a node label indicating (or representing) the underlying physical compute node so that apps can be deployed using topology spread constraints and avoid scheduling to the same physical node.
In a topology where we host multiple k8s worker instances on the same physical compute this is an important requirement for some applications.
Anything else you would like to add:
.
The text was updated successfully, but these errors were encountered: