Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

websocket - Rocketchat Kubernetes Websockt request 400

I build a kubernetes cluster in my homelab via kubespray. After that I deployed the offical nginx-ingress from kubernetes.io which is acting as my ingress controller. I continued deploying my rocketchat via the helm chart from the stable helm repo which is sadly drepicated since november. Nervertheless the deployment worked. I can reach my rocketchat without a problem via browser and desktop app.

The only problem is the websockt connection. It seems like that the standard ingress dosent redirect the websocket properly. If i curl the service ip from within the cluster the /websocket does work without a problem.

External i get a 400. Also the created wss url seems wrong:

wss://my.chat.com/sockjs/431/rv3txed/websocket/

Am i doing something worng? Has anyone have a working setup with ingress?

Thanks in advance!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...