Does cloudrun on GKE support websockets? - google-cloud-platform

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.

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.

The short answer, as of January 2021, is yes! You will need to use the beta api when deploying your service. Details are here: https://cloud.google.com/blog/products/serverless/cloud-run-gets-websockets-http-2-and-grpc-bidirectional-streams

Related

Is possible to have cloud run with load balancer on GCP?

I'd like to use GCP Cloud Run with Loadbalancer, however, I haven't found a way to create a backend service or something to connect them. I found a way of using Anthos, but, I'd prefer without it.
https://cloud.google.com/solutions/integrating-https-load-balancing-with-istio-and-cloud-run-for-anthos-deployed-on-gke
How is that possible?, What more options are there?
Finally, this integration is possible with Serverless Network Endpoint [07-09-2020].
This is in beta, however, it looks pretty nice:
Concepts:
https://cloud.google.com/load-balancing/docs/negs/serverless-neg-concepts
Setting:
https://cloud.google.com/load-balancing/docs/negs/setting-up-serverless-negs

Elasticsearch cloud hosted end point not open in my browser

Elastic search cloud hosted end point url not opening.
For others it is opening and asking for username and password but for me not.
I tested this by creating new trail elastic cloud account, that end point also not opening.
But for others and in my mobile browser it is opening.
I tried to open with other browser on my system, that also not worked.
If anyone faced this?
Another answer may be this.
I found this error, while running elastic search in desktop
"reason":"action [cluster:monitor/main] requires authentication",
"header":{"WWW-Authenticate":["Bearer realm=\"security\""
It says that requires authentication header. So May be a reason that you are on some proxy VPN. It can alter your access.
To solve it, close/turn off your proxy and then, reboot your deployment.
Hope, It helps!
The answer is, It happens sometimes due to some misconfiguration, mostly if you are using AWS cloud services ( or may be other reason, I am not sure).
Solution to this problem is,
Delete your current deployment.
Create New Deployment using Google Cloud Services
Note: Now don't infer by yourself that Gcloud is better that AWS or AWS is not that good. Many factors are there to compare.

django deployment on GCP with kubernetes

I finally got my first django project and I need help in deploying it in GCP with kubernetes.
I've never deployed any project before so it's a bit frustrating for me with the client nagging on my head.
it's an E-learning platform so I want to use GCP with kubernetes (for CI/DI since there will be a lot of updates for the project) and Google cloud storage for storing media files.
i'd love to have some help concerning deployment, things to do/don't, and some useful links to start with.
ps: this is my first question so be easy on me
Your question is too wide, try starting first and then asking a question - as we won’t be able to explain an universal way of deploying Django applications in GCP. I recommend starting from getting familiar with GCP services.
There is a really cool but paid course on Coursera platform ("Getting Started with Google Kubernetes Engine") with practical hands-on labs on how to use Kubernetes on GCP in pair with CI/CD tool like Jenkins. You can also find more about Jenkins in GCP in here.
You will also find there how to:
Use different deployment strategies with Kubernetes (Rolling Updates,
Canary and Blue-Green Deployments) with simple hello-world app.
Create a continuous delivery pipeline using Jenkins
You can enroll into this course with free trial account.

How to actually deploy to a serious host?

It's so undescribably discouraging and frustrating that deploying is such a pain. There are no step-by-step guides and every information source is outdated. I have NO idea where to begin!
I want to deploy Meteor apps to AWS (EC2 or Elastic Beanstalk) but now I've learned that it doesn't support Websockets or sticky sessions. I don't know what the latter means, but the former sounds like a big deal breaker. How can the biggest host on the Internet not support something so fundamental?
Should I just not use AWS at all? It's pretty much the only scalable host on the Internet, so that's discouraging in itself. I've read about Load Balancing and understand exactly 0 % of it, and I broke out in a sweat just typing that word here just now.
So, first of all: is it true that AWS/Elastic Beanstalk doesn't support websockets?
Second: What other issues should I look out for when deploying?
Use Meteor Up. Its README has some thorough documentation, and its primary hosting destination is AWS. And yes, AWS supports Websockets. Just follow the Meteor Up instructions.

Amazon Web Services (AWS) - Web Development and IDE Workflow

I'm completely new to AWS and due to the many different types of services they offer I'm having trouble really figuring things out, so I'd love to get some input and fresh insight.
If I want to setup a development environment to play around with what would be the best course of action? (Please explain in detail, because like I said, I'm completely new to al of this)
How can I integrate my preferred IDE (Dreamweaver or Sublime Text 3) into my AWS workflow and web/application development process because it seems nearly impossible to be able to integrate these IDE's with any of the AWS services like EC2 or Elastic Beanstalk. Typically I would just connect my IDE via FTP to my hosting server but that doesn't seem possible with any of AWS' services. I know in many instances you can SSH into these work files and modify them via terminal (ex. using nano) but clearly that isn't a very user-friendly means of developing by any stretch of the imagination.
The underline gist of this post is that I'm trying to understand what the best website/web-application development process might be when using Amazon Web Services (ex. using s3/cloudfront as a CDN and using EC2 or Elastic Beanstalk for the application itself), as well as trying to understand how to correctly interact with various service environments so that I can still use my IDE of choice to add/modify/delete and push/pull files/directories from the various AWS services that I'm using.
Please explain any answers in detail and thanks in advance for any and all insights!
(As a side note I'd like to use PHP/MySQL, as well as MEAN, AngularJS, and other implementations of MongoDB/PostgreSQL)
Many Amazon services, including EC2, support SSH/SFTP. The SFTP is supported by both Dreamweaver and Sublime Text 3.
See my guide for connecting to Amazon EC2 with SFTP. It's for WinSCP client, but you can easily reuse it for configuring Dreamweaver or Sublime Text 3.