webkubectl icon indicating copy to clipboard operation
webkubectl copied to clipboard

ERROR: INVALID TOKEN while connecting to Webkubectl

Open NinjaCloud opened this issue 4 years ago • 1 comments

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

NinjaCloud avatar Apr 28 '21 13:04 NinjaCloud

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

liqiang-fit2cloud avatar Apr 28 '21 14:04 liqiang-fit2cloud