kasmtech / workspaces-images

Other
711 stars 239 forks source link

502 error occurs when kasmweb service is connected with dns url through nginx-ingress-controller in k8s environment. #110

Open yoongeon1206 opened 3 months ago

yoongeon1206 commented 3 months ago

Hi,

I have verified kasmvnc in my local environment and think it will be useful for developers. To show kasmvnc to development team members, I created a helm chart to deploy to K8s.

We are trying to deploy the kasmweb Docker image (ubuntu-focal-dind:1.15.0) on Kubernetes and attempting to connect to DNS through nginx-ingress-controller. However, even though all DNS connections are made properly, the Kasm VNC screen is not visible.

  1. ( OK ) ubuntu-focal-dind:1.15.0 runs well without problems when run locally with the docker command.
  2. ( Not work ) When deployed to k8s and connected to DNS through nginx-ingress-controller, error 502 occurs. (port: 6901)
  3. ( OK ) When deployed on k8s and connected through port-forwarding, the VNC screen is displayed.

In above case 2, When connecting to other services, it connects without problem. I confirmed that only the kasmweb service was not connected with DNS on K8S. Is there any settings or env option that we need to connect to DNS in KASMWEB VNC service? or do we need to purchase a license to connect? Has anyone had the same issue as me or can help?

it seems to have to be updated something in dockerfile.

I simply share how i set up kasmvnc on k8s as follows.


Deployment

spec:
  containers:
  - name: kasmweb
    image: kasmweb/ubuntu-focal-dind:1.13.0
    ports:
    - containerPort: 6901

Service

ports:

spec: rules:

MSandro commented 2 months ago

I have the same problem, since kasmweb forces HTTPS and BasicAuth on port 6901, it seems to need additional configuration.

orshih6 commented 1 month ago

i also have the same problem.