Running android container noVNC on kubernetes – gives "Server disconnected (code: 1006)"

I’m using this image, to make android simulator on Kubernetes. I already did it on docker, and it worked, but now I’m trying to run it on Kubernetes.

After I create pod and service, I’m trying to access the simulator on chrome, and I get the error:

Server disconnected (code: 1006)

What I did is:

1. Run this POD:

 `apiVersion: v1
    kind: Pod
    metadata:
      name: android
      labels:
        app: android
    spec:
      containers:
      - name: android
        image: budtmo/docker-android-x86-8.1
        securityContext:
          privileged: true  
        ports:
        - containerPort: 6080
        - containerPort: 5554
        - containerPort: 5555
        env:
        - name: DEVICE
          value: "Samsung Galaxy S6"`

2. Run this service:

apiVersion: v1
kind: Service
metadata:
  name: android-service
spec:
  ports:
  - port: 6080
    name: serving
    protocol: TCP
  - port: 5555
    name: srv
    protocol: TCP
  - port: 5554
    name: srv2
    protocol: TCP
  selector:
    app: android
  1. Run kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='.*'
  2. Enter: http://localhost:8001/api/v1/namespaces/default/services/android-service:serving/proxy/

There I see the above error. How can I fix it?

Source: StackOverflow