Hello, readers! This article talks about the Introduction to Google Cloud Run with a detailed demonstration.
So, let us begin!! 🙂
Life with Containers
In the archaic period, IT application development and hosting began with the on-prem servers. The application was deployed on the premises. This made the development team pay a huge amount for the on-prem servers.
To overcome this drawback, the concept of virtual machines came in. The applications were then hosted on virtual machines gaining the concept of scalability. But again, cost optimization was an issue that still persisted.
Thus, the concept of containers came in. With containers, came the flexibility in terms of costing and resource optimization. The containers usually pack the configuration of the application-specific requirements and host it as an independent entity.
The application team now needs to pay only for the resources which they use and it offers high availability of the application as well. We can scale up and scale down manually as well as automatically as the feature offered.
With various cloud platforms offering us the features to host the application as containers, we will be discussing Google Cloud Run as the way towards containers.
What Is Google Cloud Run?
Google offers us with cloud service to host our applications without having to worry about the backend infrastructure.
Google Cloud Run enables us to build and deploy the applications on the cloud and eliminates the management of the infrastructure and resources. We can pack and encapsulate the software bundles and host an application.
Thus, with the infrastructure provisioning being eliminated, an application team can focus on the development rather than operations.
Cloud Run enables the following features to the customers-
- Provisions and enables the servers (infrastructure) as the backend for the application.
- It enables the scaling of the servers to be up or down
- Reduces the amount to be paid by the application team for the un-utilized resources.
The Cloud Run specifies a manner in which the servers can be scaled up or scaled down by eliminating or adding the resources. Also, the storage is volatile and is prevalent as long as the container stays alive. In order to have the data persist, we need to attach persistent volume storage to the container.
Cloud Run offers serverless computing with the stateless application hosted on the air. It provides us with an HTTP endpoint where the application is available.
Deploying a Container in Google Cloud Run
To begin with, Google Cloud Platform offers us Cloud Run as the service to host our applications over a serverless architecture.
Let us now try to deploy a demo container using Cloud Run as the service-
- At first, log in to the Google Cloud Platform and search for Cloud Run.
2. Click on Create a Service.
3. Under service creation, mention the container image URL, the service name (name of the container) as well as the region for the container.
4. After filling in all the configuration details, click on Create.
5. Once built, the container becomes available as a Service. Cloud Run offers us the details around the container such as Metrics, Logs of the container, YAML, Revisions made, the variables deployed through the container, etc.
By this, we have approached the end of this topic. Feel free to comment below in case you come across any questions.
For more such posts related to Cloud Services, Stay tuned with us.
Till then, Happy Learning!!