May 2018
Intermediate to advanced
554 pages
13h 51m
English
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 ...