epam / ai-stacks

Home for Kubeflow Infrastructure as a Code templates
Apache License 2.0
2 stars 2 forks source link

Notebooks cannot establish WS connection #5

Closed akranga closed 2 years ago

akranga commented 2 years ago

This seems to be regression of nginx ingress controller component.

Steps to reproduce

  1. Deploy a kubeflow cluster
  2. Create a JupyterLab notebook
  3. Open "dev-tools" in the browser
  4. Create terminal in the notebook
  5. In dev-tools see something similar to
jlab_core.4cb3c625b5e8bf236b99.js?v=4cb3c625b5e8bf236b99:2 WebSocket connection to 'wss://kubeflow.grandiose-adder-424.epam.devops.delivery/notebook/myprofile/mynotebook/terminals/websocket/1' failed: 
akranga commented 2 years ago

Judging from resolution of https://github.com/jupyterlab/jupyterlab/issues/6266 sounds like nginx doesn't accept websocket connections

TheRealSpaceShip commented 2 years ago

Fixed with agilestacks/kubeflow-components@eeb4628 Added annotation nginx.org/websocket-services to istio-ingressgateway ingress resource. Details here