Serverless to Containers - Introduction to Google Cloud Run

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome back my name is GK there is constant debate between two developer communities in cloud world so one is Sauer less and the other one is containers so one say that serverless is much better to use for micro services and you will hear from other community saying that containers are much better and if you search but in Google like you know containers versus ever less you will see number of articles supporting from both sides you know both has pros and cons but Google did an amazing job by bringing them together through a service called cloud run so by end of this video you're going to see how to use cloud run what exactly is cloud run from exams perspective I'm going to show you you know how to spin up a an image or rather spin up a container using cloud and services in GCP console so what exactly is caldron so Google brought server less to container so which means that you can run your docker containers as it's our less you know computing without managing the infrastructure and you will be paying only for the cost of executions pretty much like if you remember my last video I showed you the another offering of GCP which is cloud functions where you're running your code you're executing your code and you're only paying for that it is similar to that and you're going to run your containers you know with any random environment so that's the key difference between cloud functions and cloud run so that's the advantage of cloud run now you might have this question in your mind for example you know I showed you guys App Engine flexible also supports container then how is it different for cloud run if you have this question then I think you are pretty much set for the exam because that's what the exam is also expecting from you that you know you have to choose the right technology for the right use case the key differences between App Engine flexible and cloud run are that in App Engine flexible you are creating the infrastructure to run the container which means that I mean Google is going to create the infrastructure but Google is always running that infrastructure as a VM to run the container so you will be charged for that as you have to constantly run and also that you know a pin is pretty much for entire application you don't want to just run you know a sample container or a sample function means inside App Engine flexible though it supports containers here in cloud run you can run specific container and you will be charged less for that because this is only for executions and you don't have any VM or anything that's constantly running here so you can make it more like a even driven model where you know your cloud run or your container will only good whenever there is an event unlike App Engine flexible so that's one difference basically cost is the factor here and it is a pure server less when compared to App Engine right you know you you don't have to worry about the infrastructure here so the other important factor is that the deployment of container is much faster than cloud run because the cloud run uses a native it's an open source technology where it uses that to deploy the container we're in the areas in the case of App Engine flexible it has to spin up a VM and then it has to deploy the container so it's going to take it it's going to take some time so now you know that you know cloud run is much better than App Engine flexible in the terms of using containers but again it depends on your use case and it depends on how you want to use your containers right so in some cases you want to use Google given a DES engine in some cases you want to use App Engine flexible or in some cases you want to use cloud run the chlorine has good integration with container registry and cloud build so that you can store your images or you know get your images from container list it's another service in in GCP so that's one of one advantage and also you can use code build to build your containers which has integration with which has very good integration with clout on so cloud run by default has integration with stack drivers there are two versions of cloud run so one is fully managed cloud run and the other one is using anthos so in this video we're not going to discuss about the anthers part so in this video I'm going to show you how to use your image and then deploy it as a container and run it in cloud run alright guys welcome back so I am in my GCP console right now and I have selected a first project feel free to change that and choose whatever project you want and now I'll go to cloud run and not have any services currently running so I'm going to create a new service create service and here you have to give you a container image so if you don't know the basics of docker containers maybe we can cover that in next videos but basically container image is self-contained software pretty much like you have all the you know components that are required for your container to run as a software I'm going to give the default hello world example here so this is this is picking up the image from the docker registry the container registry so Google cloud platform have their own container registry if you go to the services here you will see container registry and if you search by hello you will see different types of images that they have built you know on till Feb 12 in October so October 17 they have the latest image and whenever you do this the latest image will be picked up from there and I'm going to run in the US central one and we're going to use a fully managed containers are we see here like I've said you know we're not going to use run or we're not going to run and those in the service name I'm just leaving it default right now and since I want to access this URL the container that's going to run from internet I'll leave it as unauthenticated invocations and click on create so while that is happening as you can see it has integrations with stackdriver and you can click on details it shows all unauthenticated and also the connectivity is open for the external which means that we can we can access our container from internet and there are there is a deployment file and permission so it also creates a service account if you don't know what exactly service account you can click on my previous video what service accounts so now my container is currently running it is serving hundred-percent traffic and if I want to see my service and open this and you can see that this is exactly coming from the container so you can change that and you can build your own content if you want you know you can run a wordpress inside a container and run inside cloud run this is just a basic example beyond this I don't think there will be any other questions on on cloud run in GCP associate exam this should be more than enough and if you have any other questions feel free to put that in the comment section that's it for this video guys thanks for watching have a wonderful [Music]
Info
Channel: Cloud Advocate
Views: 9,216
Rating: undefined out of 5
Keywords: Google Cloud, Cloud Computing, Cloud Technologies, GCP exam, GCP Associate exam, Google Associate exam, Associate Cloud Engineer exam, Containers as Serverless, Google Cloud Run
Id: mRM8h-2sdEo
Channel Id: undefined
Length: 7min 44sec (464 seconds)
Published: Mon Dec 16 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.