List the nodes and get the <node-name> that you want to use or (remove from the cluster)
kubectl get nodes
1) First drain the assembly
kubectl drain <node-name>
You may need to ignore daemon sets and local data on your computer.
kubectl drain <node-name> --ignore-daemonsets --delete-local-data
2) Change the group of instances for nodes (only if you use cops)
kops edit ig nodes
Set the size of MIX and MAX to -1 Just save the file (do nothing extra)
You can still see some pods in the empty node that are associated with sets of daemons, such as a network plugin, fluentd for logs, kubedns / coredns, etc.
3) Finally, delete the node
kubectl delete node <node-name>
4) Fix the state for KOPS in s3:
kops update cluster --yes
source share