19.06.2021 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Running a Kubernetes Application

Chapter 4 ■ Using Multiple Zones

Next, we shall test the Kubernetes cluster to confirm that pods in an application do get allocated across the

nodes in the different zones. Connect to the controller instance:

ssh -i "kubernetes-coreos.pem" core@52.202.134.20

The controller instance is logged into as shown in Figure 4-15.

Figure 4-15. SSH logging into the controller CoreOS instance

Install the kubectl binaries and set permissions.

sudo wget https://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/linux/

amd64/./kubectl

sudo chmod +x ./kubectl

Kubectl binaries are installed. Move the kubectl binaries to /usr/local/bin/, which is in the path:

sudo mv ./kubectl /usr/local/bin/

List the nodes in the cluster:

./kubectl get nodes

The single master node and the six worker nodes are listed as shown in Figure 4-16.

Figure 4-16. Listing the nodes in the Kubernetes cluster

101

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

Saved successfully!

Ooh no, something went wrong!