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.

Reserving a Static External IP Address

Chapter 3 ■ Kubernetes on Google Cloud Platform

Each VM instance is assigned an internal IP address, which is used to communicate with other VM instances

on the same network. To be able to communicate outside the network, with the Internet to download

Kubernetes binaries for example, we need to assign a static external IP address to the VM instance. Navigate

to the URL https://console.cloud.google.com/networking/addresses to create a static external IP

address.

In the Reserve a Static Address page, click Regional and specify a Region. In the Attached To field, select

the VM instance created earlier. Click on Reserve as shown in Figure 3-33.

Figure 3-33. Clicking on Reserve to reserve a static address

A static external IP Address is reserved for the VM instance.

Creating a Kubernetes Cluster

To create a Kubernetes cluster, run one of the following commands in the shell for the VM instance.

curl -sS https://get.k8s.io | bash

or

wget -q -O - https://get.k8s.io | bash

The Kubernetes binaries are downloaded as shown in Figure 3-34.

67

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

Saved successfully!

Ooh no, something went wrong!