https://rancher.com/ logo
#k3s
Title
# k3s
b

bumpy-agency-19657

08/08/2022, 8:50 PM
Hello team, I have a k3s cluster with 1 master node and 1 worker. When I try to run the exec command on a pod running on the worker node:
Copy code
"kubectl exec -it myapp-deploy2-859f8f4dfc-9xv8v -- ls"
I get the following error: "Error from server: error dialing backend: x509: certificate is valid for. localhost not worker" How can I execute a exec command in a pod on worker node?
j

jolly-waitress-71272

08/08/2022, 9:03 PM
I would try restarting k3s on both master and worker. This seems to happen when the cert expires.
🎉 1
b

bumpy-agency-19657

08/08/2022, 9:26 PM
excellent after restart it is solved
🙌 1
6 Views