loud-eve-73457
08/03/2025, 2:58 PM$ kubectl logs -f my-app-deployment-58dcff5b4c-l45s8
Error from server: Get "<https://xxx.xxx.xxx.xxx:10250/containerLogs/default/my-app-deployment-58dcff5b4c-l45s8/my-container?follow=true>": proxy error from 127.0.0.1:9345 while dialing xxx.xxx.xxx.xxx:10250, code 502: 502 Bad Gateway
and i need to login to the worker node and do sudo service rke2-agent restart
and then my log output normally.
I want to know, how to protect my rke2 process from such situation thus I don't need to login to the worker to restart it. great thanks.creamy-pencil-82913
08/03/2025, 4:25 PM