-
Notifications
You must be signed in to change notification settings - Fork 960
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
fix(kube-node-lease): remove objects created for kube-node-lease #4894
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
Hey @arnoldyahad this was added as a way to mitigate an upstream bug until it was fixed upstream: kubernetes/kubernetes#109777. Are you running self-managed kubernetes? How do you manage node leases? Is it possible for you to create the namespace? |
@njtran , should we just log (info) and continue if we don't find this namespace? We definitely shouldn't block Karpenter's operations on this. |
@ellistarn yeah that'd be reasonable. @arnoldyahad Would that be sufficient for you? You could then remove the role and rolebinding from your own CI/CD as Karpenter wouldn't make the call. |
I had a general question about whether having this namespace is expected for all clusters or under which circumstances we shouldn't expect to see this namespace? Is is possible to put your node leases in a different namespace? |
@ellistarn @njtran first of all thanks for the quick reply. it is possible for us to do this workaround and just not use anything related to The problem here is that users can't use newer karpenter versions (#4547) without the namespace, and if its possible for karpenter to work without it - those changes should be optional and maybe inserted only if a cluster has this namespace already. if you are aware that this namespace is created automatically by k8s/eks in later versions and is mandatory for cluster operations please tell us and we will add it manually for now, but if its not - better not to enforce it if not needed. |
AFAIK, I thought the feature for Node leases being stored in the |
@jonathan-innis thanks for replying. i checked our clusters for leases by using:
and i get information regarding all leases, so i don't know if the feature to have it in a separate namespace is "enforced" somehow and we skipped it, or its an "opt-in" to have it in a |
@ellistarn @njtran
might be related to: so just removing the permissions to that namespace as i did in this PR is not enough to solve this issue. |
If you are getting information on the leases in that namespace, then do you know why Karpenter is failing to start then? It sounds like the namespace exists for the cluster, then? Or is there a cluster that you have an example of where you don't have the namespace and that's the cluster that Karpenter is failing to start on? |
Hey @arnoldyahad! Any updates here? We want to drive toward getting a solution to your problem here but it's still a little unclear to me what the cluster configuration looks like that's causing this namespace not to exist. |
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
Fixes #4547
Hey,
It looks like about 2 months ago, resources for
kube-node-lease
were added to karpenter:#4453
Those changes are causing karpenter not to work on clusters without a namespace called
kube-node-lease
as i see, this namespace is used for test, as it appers only in those files:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.