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

Internet gateway

To access your VPC network, you need to have a gateway that accesses it from the internet. Internet Gateway (IGW) is the one that connects the internet to your VPC.

Then, in the subnets under VPC, you can set the default route to go to IGW or not. If it routes to IGW, the subnet is classified as the public subnet. Then, you can assign the global IP address on the public subnet.

Let's configure the first subnet (192.168.0.0/24) as the public subnet that routes to IGW using the following steps:

  1. Create IGW and capture InternetGatewayId:
$ aws ec2 create-internet-gateway{   "InternetGateway": {       "Attachments": [],       "InternetGatewayId": "igw-e50b849d",       "Tags": []    }}
  1. Attach IGW (igw-e50b849d) to your VPC (vpc-69cfbd12):
$ aws ec2 ...
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