Quick post on how easy OpenStack Magnum makes scaling your Kubernetes clusters up or down. I spun up a one controller, one worker node Kubernetes cluster. Scaling this cluster up and down, where Magnum takes care of adding and removing the worker node to the cluster, is only one command each way.
$ kubectl cluster-info Kubernetes master is running at https://192.168.88.233:6443 KubeUI is running at https://192.168.88.233:6443/api/v1/proxy/namespaces/kube-system/services/kube-ui $ kubectl get nodes NAME STATUS AGE 10.0.0.3 Ready,SchedulingDisabled 6m ku-ptzjkk2wew-0-b2tsvzrd63o4-kube-minion-uol3nin7zndb Ready 4m root@infra01-utility-container-e6fba879:~# nova list +--------------------------------------+-------------------------------------------------------+--------+------------+-------------+----------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-------------------------------------------------------+--------+------------+-------------+----------------------------------+ | 643e4ad8-a9db-44c8-b236-8536efc5fc44 | ku-4b3scjlreg-0-jvxjrtd2b7lg-kube-master-wri52qlujljn | ACTIVE | - | Running | private=10.0.0.3, 192.168.88.233 | | 0aa58f68-b05c-4c3d-b54b-93848132d2f4 | ku-ptzjkk2wew-0-b2tsvzrd63o4-kube-minion-uol3nin7zndb | ACTIVE | - | Running | private=10.0.0.4, 192.168.88.227 | +--------------------------------------+-------------------------------------------------------+--------+------------+-------------+----------------------------------+ We use the cluster-update command to add another worker node.
...