본문 바로가기
Programming/Kubernetes

[Kubernetes] error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log ... ) )

by guru_k 2021. 11. 9.
728x90
반응형

After renewing certs, if the below error occurred.

$ kubectl logs foo-5c76dc6585-b2lms
error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log foo-5c76dc6585-b2lms) )

Restart docker to change certs on control plane containers.

$ systemctl restart docker
$ systemctl restart kubelet

 

728x90
반응형

댓글