Use hostprocess for Windows node manager in Helm chart#3283
Conversation
✅ Deploy Preview for kubernetes-sigs-cloud-provide-azure ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
7a2a317 to
ec13c57
Compare
ec13c57 to
2d5d6c3
Compare
|
/kind bugfix |
|
@CecileRobertMichon: The label(s) DetailsIn 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. |
|
/kind bug |
|
/assign @marosset |
Could you elaborate why IMDS is not reachable on capz? |
@marosset can weigh in but I believe it's not a capz limitation, it's a calico overlay networking issue: kubernetes-sigs/cluster-api-provider-azure#2132 Azure CSI driver helm charts also had to do this for this reason: kubernetes-sigs/azuredisk-csi-driver#1201 |
marosset
left a comment
There was a problem hiding this comment.
/lgtm
This should unblock deploying the Windows cloud-node-manager!
We can update the deployment to no longer need the powershell / kube-config after containerd 1.7 releases (but the current changes should work on both containerd 1.6 and 1.7)
I believe it is a limitation on overlay networking on Windows in general (not specific to calico) |
|
/assign @feiskyer |
2d5d6c3 to
4a33259
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon, feiskyer, marosset The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently, external cloud-provider does not work with Windows nodes when using the Helm chart. The Daemonset for cloud-node-manager-windows is not able to reach the metadata endpoint and therefore windows nodes always have the Taint node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule.
This PR changes the cloud-node-manager-windows Daemonset to use
hostProcess: trueand adds a temporary workaround for not being able to useinClusterConfig()(until k8s 1.26 + containerd v1.7).All credits go to @mweibel and @marosset for discovering the issue and suggesting a fix.
Which issue(s) this PR fixes:
Fixes kubernetes-sigs/cluster-api-provider-azure#2591
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: