Skip to Content
Kubernetes Cookbook - Second Edition
book

Kubernetes Cookbook - Second Edition

by Hideto Saito, Hui-Chuan Chloe Lee, Ke-Jou Carol Hsu
May 2018
Intermediate to advanced
554 pages
13h 51m
English
Packt Publishing
Content preview from Kubernetes Cookbook - Second Edition

Creating subnets

Let's create two subnets under the chap7 VPC (network) by following these steps:

  1. In order to create a subnet, you have to choose the region. By typing gcloud compute regions list you will know which regions are available to you:
Displaying a GCP region list
  1. Let's choose us-central1 and us-east1 to create two subnets under the chap7 VPC with the following configuration:
Subnet name VPC CIDR range Region
chap7-us-central1 chap7 192.168.1.0/24 us-central1
chap7-us-east1 chap7 192.168.2.0/24 us-east1
$ gcloud compute networks subnets create chap7-us-central1 --network=chap7 --range=192.168.1.0/24 --region us-central1 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas
DevOps with Kubernetes - Second Edition

DevOps with Kubernetes - Second Edition

Hideto Saito, Hui-Chuan Chloe Lee, Cheng-Yang Wu

Publisher Resources

ISBN: 9781788837606Supplemental Content