amazon web services - how to change existing kubernetes aws cluster with kops (change nodes type) -
i have deployed kubernetes cluster kops....
kops create cluster --state=${state_store} --cloud=aws --zones=eu-west-2a,eu-west-2b --node-count=2 --node-size=t2.small --master-size=t2.small ${name}
is way change node-size after deployment? without deleting cluster...
yes possible.
you need run command: kops edit ig --name=change_to_cluster_name nodes
this bring , editor screen similar to:
apiversion: kops/v1alpha2 kind: instancegroup metadata: creationtimestamp: "2017-07-01t12:06:22z" labels: kops.k8s.io/cluster: url_of_cluster name: nodes spec: image: kope.io/k8s-1.6-debian-jessie-amd64-hvm-ebs- machinetype: m3.large maxsize: 7 minsize: 3 role: node subnets: - eu-west-1a
you can make edit's machine type , min / max nodes required.
once done, exit out of editor would. need run command:
kops update cluster change_to_cluster_name --yes
that'll begin update process - bear in mind instances going disappear , pods running on instances terminate. scheduler should put them on node if can fit them on.
Comments
Post a Comment