19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3 ■ Kubernetes on Google Cloud Platform

Figure 3-67. Docker Image Uploaded to Repository

The repository image may be used to create a Kubernetes deployment and Service. Run the kubectl

run command to create a deployment:

kubectl run hello-node --image=gcr.io/kube-gke/hello-node:v1 --port=8080

The deployment hello-node is created as shown in Figure 3-68.

Figure 3-68. Creating a deployment

List the deployments and the pods as shown in Figure 3-69, and you’ll see a hello-node deployment

and a hello-node prefixed pod listed.

Figure 3-69. Listing the deployment and pod

85

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!