Kubernetes Engine
Create a Kubernetes cluster and deploy a container.
Kubernetes Engine is a secured and managed Kubernetes service so you can deploy containerized application in an enterprise/production-grade Kubernetes cluster with a click of a button.
Getting Started
Clone
cd $HOME
git clone https://github.com/saturnism/jvm-helloworld-by-example
cd jvm-helloworld-by-example/helloworld-springboot-tomcatBuild
./mvnw packageContainerize
Enable API
Enable the Container Registry API so that you can push container images to Container Registry.
gcloud services enable containerregistry.googleapis.comJib
Use Jib to containerize the application:
Create Cluster
Enable API
Create Cluster
Create a VPC-native Kubernetes Engine cluster.
Cluster Credentials
Kubernetes credentials are automatically retrieved and stored in your $HOME/.kube/config file. If you need to re-retrieve the credentials:
Deploy
Check that the container is deployed:
Expose
You can expose this one service using a single Network (L4) Load Balancer:
Connect
Find the Load Balancer's External IP address:
Initially, it may display that the External IP is <pending>.
Re-check until the External IP is assigned.
Then connect with curl:
Learn More
Last updated
Was this helpful?