clusternet: Getting error whenever tried to check the logs of Clusternet-Agent pod through Kubernetes command

**Getting below error time=“2023-07-25T16:32:55Z” level=error msg=“Failed to connect to proxy. Response status: 401 - 401 Unauthorized. Response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Unauthorized","reason":"Unauthorized","code":401}\n” error=“websocket: bad handshake” time=“2023-07-25T16:32:55Z” level=error msg=“Remotedialer proxy error” error=“websocket: bad handshake” E0725 16:32:56.407787 1 wait.go:190] failed to create Secret clusternet-2c44b/child-cluster-deployer: Unauthorized, will retry E0725 16:33:00.292427 1 socket_controller.go:103] websocket connection error: websocket: bad handshake E0725 16:33:01.319527 1 status_manager.go:119] failed to list ManagedCluster in namespace clusternet-2c44b: Unauthorized E0725 16:33:01.793141 1 wait.go:190] failed to create Secret clusternet-2c44b/child-cluster-deployer: Unauthorized, will retry W0725 16:33:02.461822 1 clusterstatus_controller.go:151] failed to discover service CIDR: can’t get ServiceIPRange time=“2023-07-25T16:33:05Z” level=info msg=“Connecting to proxy” url=“wss://35.184.85.200/apis/proxies.clusternet.io/v1alpha1/sockets/2dbed21f-ff14-4fa9-8ada-b8274c870407”

What expected to happen: I am trying to check the logs of clusternet-agent pod and it will be start on running mode. So, out of 3 clusternet-agent pod, 2 pods are running and working fine but only in one pod I am getting this error.

Environment: - Clusternet-agent version (user clusternet-agent --version=json):0.13.0 - Clusternet-hub version (user clusternet-hub --version=json):0.13.0

  • Kubernetes version (use kubectl version):v1.26.5

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

@shekhar250723 These 3 pods are running with leader elections. At a time, only 1 pod is running as functional, the other 2 pods are running as standby.

From the 3 pods’ logs, they are all running properly. It’s good. No worries.

Now you can move to the next, try these tutorials (https://clusternet.io/docs/tutorials/) to learn more about Clusternet.