kubelet does not start on Windows when using the Prepare-Node.ps1 script #5857
Labels
area/OS/windows
Issues or PRs related to the Windows operating system.
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Describe the bug
When using our Prepare-Node.ps1 to install and configure K8s, the generated
c:\k\StartKubelet.ps1
script, which is the command executed by thekubelet
nssm service, is incorrect. As a result, kubelet cannot run.To Reproduce
Follow our Windows installation instructions.
Expected
kubelet runs successfully.
restart-service kubelet
does not return an error.Actual behavior
The
kubelet
service immediately goes into thepaused
state, and the K8s Node is not functional.restart-service kubelet
fails:When one tries to run
c:\k\StartKubelet.ps1
manually, one gets the following error:kubelet is not looking for certificates in the right place. This is a known kubelet issue on Windows (see kubernetes/kubernetes#77710), which is avoided (workaround) by providing an explicit
--cert-dir
when running kubelet. See https://github.com/kubernetes-sigs/sig-windows-tools/blob/master/hostprocess/PrepareNode.ps1#L73.Our own version of the script (
Prepare-Node.ps1
) is also supposed to use--cert-dir
but since #5071, it is not done correctly:The generated script is not correct. We should have:
Notice the missing whitespace before
--cert-dir
.Versions:
Antrea v1.13.2 (and earlier 1.13 patch versions), v1.14.1 (and earlier 1.14 patch versions).
The text was updated successfully, but these errors were encountered: