1Panel-dev / webkubectl

Run kubectl command in Web Browser.
Apache License 2.0
854 stars 120 forks source link

ERROR: INVALID TOKEN while connecting to Webkubectl #20

Open NinjaCloud opened 3 years ago

NinjaCloud commented 3 years ago

This error happens many times

we are using 5 replicas of webkubectl kubernete server version : 1.20.6 webkubectl : latest version WhatsApp Image 2021-04-28 at 6 03 45 PM

liqiang-fit2cloud commented 3 years ago

Hi there, The token is temporarily stored in the memory of webkubectl server by default, so for multiple replicas you have two solutions.

  1. Use ip_hash or any other sticky session algorithm in your load balance proxy.
  2. Use a redis to share token among all of the replicas, please refer to https://github.com/KubeOperator/webkubectl/issues/18