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

Updating nodes

Using the kops edit command, we can modify the instance type and the node count:

// kops edit ig nodes# kops edit instancegroups nodes --name k8s-cookbook.netapiVersion: kops/v1alpha2kind: InstanceGroupmetadata:  creationTimestamp: 2018-04-14T19:06:47Z  labels:    kops.k8s.io/cluster: k8s-cookbook.net  name: nodesspec:  image: kope.io/k8s-1.8-debian-jessie-amd64-hvm-ebs-2018-02-08  machineType: t2.micro  maxSize: 2  minSize: 2  nodeLabels:    kops.k8s.io/instancegroup: nodes  role: Node  subnets:  - us-east-1a  - us-east-1b  - us-east-1c

In this example, we modify both minSize and maxSize from 2 to 3. After the modification, we'll need to run the kops update to see it take effect:

# kops update cluster k8s-cookbook.net --yes...I0414 21:23:52.505171 ...
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