Set up a websocket in Google Kubernetes Engine

0 votes
How do I enable a port on Google Kubernetes Engine to accept websocket connections? Is there a way of doing so other than using an ingress controller?
Sep 25, 2019 in GCP by anonymous
• 19,610 points
3,221 views

1 answer to this question.

0 votes

Web sockets are supported by Google's global load balancer, so you can use a k8s Service of type LoadBalancer to expose such service beyond your cluster.

Do bear in mind that load balancers created and managed outside Kubernetes during this manner can have a default connection duration of thirty seconds, which interferes with web socket operation and will cause the connection to be closed frequently.

This is virtually useless for net sockets to be used effectively.

Until this issue is resolved, you'll either got to modify this timeout parameter manually or (recommended) think about using an in-cluster ingress controller (e.g.nginx) which affords you more control.

answered Sep 25, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How do I set up a Google Cloud project?

I'm looking to understand how to set ...READ MORE

Oct 25 in GCP by Priyanka
• 4,080 points
51 views
0 votes
1 answer

How is Google App Engine (Flexible) different from Google Kubernetes Engine?

They are different things. App Engine versatile is concentrated on application ...READ MORE

answered Sep 25, 2019 in GCP by Sirajul
• 59,230 points
1,698 views
0 votes
1 answer
0 votes
1 answer

Is it possible to use Windows Server Containers OS in Google Kubernetes Engine?

It is possible to run Windows containers, however solely as a container in a compute Engine ...READ MORE

answered Sep 25, 2019 in GCP by anonymous
• 59,230 points
654 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP