1Panel-dev / webkubectl

Run kubectl command in Web Browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: INVALID TOKEN while connecting to Webkubectl

NinjaCloud opened this issue · 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

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 #18