Operation
Containerisation in the Google Cloud
What is containerisation?
Containerisation is a topic that has gained significant traction in software development in recent years. This was necessitated by the requirement for Continuous Integration (CI) and Continuous Deployment (CD) when building software. To achieve the CI/CD aspect of software architecture, developers use containers. A container is essentially a fully packaged, portable, and self-contained computing environment. Containerisation can therefore be defined as a form of operating system virtualisation designed to create portable, lightweight, software-defined environments in which software can run in isolation from other software running on the physical host machine.
An entire range of products such as Docker, Kubernetes, tools, and best practices have emerged to enable the containerisation of countless applications. You can containerise almost any software application, ranging from microservices, web servers, and database management systems to containers within VMs to increase security and more.
Major cloud providers such as Google, Azure, AWS, Digital Ocean, and others are vying for the top spot in providing environments for running containers. As a data-focused tech giant, Google takes a leading role here, offering additional services such as big data, machine learning, etc., alongside containerisation.
Guide – Containerisation in Google Cloud?
Google Cloud relies heavily on containerisation; in fact, everything at Google apparently runs in containers. If you are wondering why, I will discuss the benefits of containerisation in a section below. They have provided the necessary tools you need to use containers, from development through to production. These tools and solutions include:
Google Cloud Run – is a Google Cloud implementation that enables you to run stateless/serverless containers that you can invoke via the web or Pub/Sub events. It automatically scales instantly up and down from zero, depending on the traffic hitting your application.
Google Kubernetes Engine (GKE) – is Google Cloud's container management solution, which looks after the health, state, scaling, and scheduling of your containers. When configured correctly, GKE can automatically repair failed nodes.
Google Container Registry (GCR) – container registries are like repositories where developers host their containers, either privately or publicly for other developers to use. Docker Hub is an example of a container registry. GCR offers its users a similar solution, where you can push and pull your container images and manage their visibility.
Google Compute Engine (GCE) – this is the infrastructure where you can provision virtual machines on demand and then use these virtual machines to run your containers.
Google’s Container-Optimized OS – Google Cloud has actually developed an operating system image based on the open-source Chromium OS project. It is optimised for running Docker containers. It offers fast boot times and comes with all Kubernetes components installed for container management. It features cloud-init, the Compute Engine metadata framework, and the necessary tools to configure an instance during boot-up so that your application is deployed quickly enough.
Benefits of Containerisation
Scalability – this is one of the main reasons containers are so popular. Containers can live alongside other containers on the same machine without interfering with each other's processing. This saves you the need for vast amounts of server storage space for your applications.
Portability – containers have been designed to run comfortably in any digital working environment. Basically, the application inside the container runs the same on any host operating system you choose. You can predict how your application will run across different deployments.
Automated container management – through solutions such as Kubernetes, you can automate deployments, restarts upon failure, and rollbacks. For instance, if your application receives more traffic than it can handle, another containerised application can be spun up to balance the load and ensure your users experience no downtime.
Reliability – containers are isolated and self-contained. A failure in one container running on a host operating system will not affect the other containers. You can run multiple instances of your application across different containers, and if one container crashes, the other instances simply carry on running.



