Skip to content
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

windows: kubelet tries to load C:\var\lib\kubelet\etc\kubernetes\pki\ca.crt #2330

Closed
jayunit100 opened this issue Oct 22, 2020 · 7 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@jayunit100
Copy link
Member

jayunit100 commented Oct 22, 2020

Is this a request for help?

no

Is this a BUG REPORT or FEATURE REQUEST?

BUG REPORT

Versions

1.18

What happened?

Kubeadm seems to be saying it can't load the cert files im specifying in windows... but its not clear why its looking in this path (there is nothing there)

Looking in the kubelet logs via PS C:\k> cat 'C:\var\log\kubelet\kubelet.exe.ERROR' ...

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg                                                                                                                                                                                                                                                          F1022 09:46:18.740525    5956 server.go:254] unable to load client CA file \var\lib\kubelet\etc\kubernetes\pki\ca.crt: open
 C:\var\lib\kubelet\etc\kubernetes\pki\ca.crt: The system cannot find the path specified.

goroutine 1 [running]:                                                                                                                                                                                                                                                                                                       
k8s.io/kubernetes/vendor/k8s.io/klog.stacks(0xc0000be001, 0xc000512000, 0x939, 0x2710)
        /workspace/anago-v1.18.0-
rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/klog.go:875 

+0xbf
k8s.io/kubernetes/vendor/k8s.io/klog.(*loggingT).output(0x6c10080, 0xc000000003, 0xc0008df880, 0x6a88aeb, 0x9, 0xfe, 0x0)

What you expected to happen?

Kubeadm would be looking in the right place for the ca.crt file

How to reproduce it (as minimally and precisely as possible)?

In my case, i ran kubeadm on windows, and then reset, and re ran it again, which is when i started seeing this.

@neolit123
Copy link
Member

/kind support

what are the contents of the /var/lib/kubelet/config.yaml (that has the KubeletConfiguration)?

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Oct 22, 2020
@neolit123 neolit123 changed the title windows windows: kubelet tries to load C:\var\lib\kubelet\etc\kubernetes\pki\ca.crt Oct 22, 2020
@neolit123
Copy link
Member

please provide reproduction steps and more details.

@benmoss
Copy link
Member

benmoss commented Oct 22, 2020

Yes, this was a known problem that we worked around in sig-windows-tools scripts just by symlinking /etc/kubernetes/pki to /var/lib/kubelet/etc/kubernetes/pki https://github.com/kubernetes-sigs/sig-windows-tools/blob/master/kubeadm/scripts/PrepareNode.ps1#L65

@neolit123
Copy link
Member

ok, that was it...i don't recall the actual problem though i think it goes down to client-go / abs paths.

@neolit123
Copy link
Member

@jayunit100 and like mentioned on slack this is not a kubeadm bug per-se, but if you want to dig down to it, we should log a kubernetes/kubernetes issue.

@neolit123
Copy link
Member

added a mention about this in #1393 (windows tracking issue)
and closing this one.

@jayunit100 please ping me on a potential k/k ticket about the actual bug in core.
thanks

@jayunit100
Copy link
Member Author

were following on in #1393 on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants