GKE上的cloudrun是否支持websocket? [英] Does cloudrun on GKE support websockets?

查看:59
本文介绍了GKE上的cloudrun是否支持websocket?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用GCP,我正在尝试将项目投入生产,并且在使Websocket通信正常工作时遇到了问题.我一直在搜寻,并且我不清楚在GKE上运行的云是否支持入站/出站Websocket连接.局限性文档说,完全运行管理的云无法与入站websocket一起使用,但没有说明有关在gke上运行的websocket出现问题的云.

This is my first time using GCP, and I'm trying to put my project on production, and I'm running into problems with getting websocket communication working. I've been googling around and I'm super unclear on if cloud run on GKE supports inbound/outbound websocket connections. The limitations docs say that cloud run fully managed does not work with inbound websockets, but does not say anything about cloud run on gke having issues with websockets.

我可以发布自己的入口配置和内容,但不确定是否与之真正相关,但是我只是遵循了他们的入门指南,因此大部分情况下一切仍设置为默认值.

I can post my ingress config and stuff, not really sure what exactly is relevant to this, but I've just followed their getting setup guide so everything is still set to the default for the most part.

推荐答案

简短的回答是否".但是,WebSocket确实可以出站工作.这是有关Cloud Run的已知问题.您可以只使用 GKE App Engine Flex作为推荐的替代方法.

The short answer is no. However, WebSockets do work outbound. This is a known issue on Cloud Run. You can use either just GKE or App Engine Flex as recommended alternatives.

这篇关于GKE上的cloudrun是否支持websocket?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆