Setting up a Google Kubernetes Engine cluster
We would need to set up a Kubernetes cluster on GCP to deploy our containerized Spring Boot application. GCP can provide a hosted and managed deployment of Kubernetes. We can create a Kubernetes cluster on GCP using the following two methods:
- Creating a Kubernetes cluster using Google Cloud SDK
- Creating a Kubernetes cluster using Google Console
Let's discuss each of these in detail.
Creating a Kubernetes cluster using Google Cloud SDK
We can create a Kubernetes cluster for running containers using the following gcloud SDK command. This will create a Kubernetes cluster with default settings:
We have successfully created a Kubernetes cluster using Cloud SDK. Next, we will try to create the cluster using Google Console.
Creating a Kubernetes cluster using Google Console
To create a Kubernetes cluster using the Console, you should...