Commit 82fbc251 authored by Ilya Dmitrichenko's avatar Ilya Dmitrichenko

coreos/azure: Pass number of minions as an argument

parent 6d465c4d
...@@ -96,9 +96,9 @@ First, lets set the size of new VMs: ...@@ -96,9 +96,9 @@ First, lets set the size of new VMs:
``` ```
export AZ_VM_SIZE=Large export AZ_VM_SIZE=Large
``` ```
Now, run resize script with state file of the previous deployment: Now, run resize script with state file of the previous deployment and number of minions to add:
``` ```
./resize-kubernetes-cluster.js ./output/kubernetes_1c1496016083b4_deployment.yml ./resize-kubernetes-cluster.js ./output/kubernetes_1c1496016083b4_deployment.yml 2
... ...
azure_wrapper/info: Saved SSH config, you can use it like so: `ssh -F ./output/kubernetes_8f984af944f572_ssh_conf <hostname>` azure_wrapper/info: Saved SSH config, you can use it like so: `ssh -F ./output/kubernetes_8f984af944f572_ssh_conf <hostname>`
azure_wrapper/info: The hosts in this deployment are: azure_wrapper/info: The hosts in this deployment are:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
var azure = require('./lib/azure_wrapper.js'); var azure = require('./lib/azure_wrapper.js');
var kube = require('./lib/deployment_logic/kubernetes.js'); var kube = require('./lib/deployment_logic/kubernetes.js');
azure.load_state_for_resizing(process.argv[2], 'kube', 2); azure.load_state_for_resizing(process.argv[2], 'kube', parseInt(process.argv[3] || 1));
azure.run_task_queue([ azure.run_task_queue([
azure.queue_machines('kube', 'stable', kube.create_node_cloud_config), azure.queue_machines('kube', 'stable', kube.create_node_cloud_config),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment