Trouble running code-server on Digital Ocean kubernetes
See original GitHub issuecode-server
version: v2- OS Version: Kubernetes DO 1.16.6-do.0
Description
I’m having trouble running code-server on Digital Ocean kubernetes. The problem seems to be with websokets. In the Javasript console I get this error: ERR [remote-connection] [Management] [ee9c0…] [initial] [p-lao.tk:80] socketFactory.connect () failed. Error: Error: WebSocket close with status code 1006
ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
Please help me solve this error.
First of all, Thanks
My YAML File
apiVersion: v1
kind: Namespace
metadata:
name: code-server
---
apiVersion: v1
kind: Service
metadata:
name: code-server
namespace: code-server
spec:
ports:
- name: code-server-main
port: 80
targetPort: 8080
name: https
protocol: TCP
selector:
app: code-server
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: code-server
name: code-server
namespace: code-server
spec:
selector:
matchLabels:
app: code-server
replicas: 1
template:
metadata:
labels:
app: code-server
spec:
containers:
- image: codercom/code-server:v2
imagePullPolicy: Always
name: code-server
env:
- name: PASSWORD
value: "password"
ports:
- containerPort: 8080
name: https
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
namespace: code-server
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: p-lao.tk
http:
paths:
- path: /
backend:
serviceName: code-server
servicePort: 80
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Trouble running code-server on Digital Ocean kubernetes
I'm having trouble running code-server on Digital Ocean kubernetes. The problem seems to be with websokets. In the Javasript console I get ...
Read more >How To Set Up the code-server Cloud IDE ... - DigitalOcean
If you would like to run code-server on your DigitalOcean Kubernetes cluster check out our tutorial on How To Set Up the code-server...
Read more >How To Set Up the code-server Cloud IDE Platform on ...
In this tutorial, you will set up the code-server cloud IDE platform on your DigitalOcean Kubernetes cluster and expose it at your domain, ......
Read more >How To Set Up the code-server Cloud IDE ... - DigitalOcean
As I was following through the tutorial: “How To Set Up the code-server Cloud IDE Platform on Ubuntu 20.04”.
Read more >code-server failing to start. Code exited Error 127 - DigitalOcean
Hi All,. I've been following this instruction from Digital Ocean how to set up a code-server in a droplet. Everytime I start the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have solved the problem. In case someone has the same problem. In my Ingress.yaml I had to add an annotation to allow connections to websockets. The annotation I add to ingress.yaml:
My YAML Ingress:
My YAML Exposes Ingress from a Load Balancer