Search⌘ K
AI Features

Kubernetes on GCP

Explore the process of deploying Docker containers with Google Kubernetes Engine on Google Cloud Platform. Understand how to push images to Container Registry, set up Kubernetes clusters, and expose workloads for scalable, reproducible model services in the cloud.

Google Cloud Platform provides a service called Google Kubernetes Engine (GKE) for serving Docker containers. Kubernetes is a container-orchestration system originally developed by Google that is now open source. There are a wide range of use cases for this platform, but we’ll focus on the specific task of hosting our echo service using managed Kubernetes.

Kubernetes for Docker

Using Kubernetes for hosting a Docker container is similar to ECS, where the first step is to save your image to a Docker registry that can interface with the orchestration system. The GCP version of this registry service is called Container Registry. To get our image from our local machine to the GCP Container Registry, we’ll again use the docker login command. For this process to work, you’ll need the GCP credentials JSON file that we set up in Chapter : Introduction.

Pushing image

The ...