Rancher on EKS: Solving “Error connecting to WebSocket” while using ELB with nginx ingress | by Victor Muchiaroni | sysadmuchi | Feb, 2021 | Medium medium.com
The first time I tried to install rancher on an EKS cluster, I faced this error that took me some time to solve. Message:“Error connecting to WebSocket Unable to establish a WebSocket connection to the server. If your server is behind a proxy or SSL-termination device, Browser can not connect to WebSocket. If you run the server behind a proxy, please make sure the proxy supports WebSockets. Streaming stats, logs, shell/console, and auto-updating of the state of resources may not work until this is resolved.” This was happening because my SSL termination was on the AWS ELB side and it would not pass some required Headers to Rancher’s services. In order to solve that, I have to add some specific annotations to the kubernetes nginx ingress. The nginx ingress manifest file looks like this(the specific annotations are marked in BOLD):
Report Story