<p>I've been using Docker for some time now, but I'm new to Kubernetes. One tool that I have always relied on is <em>docker-machine</em>, which was particularly useful to me when I wanted to create a new node in aws to be integrated in my swarm, e.g.</p>

<pre><code>docker-machine create --driver amazonec2 --amazonec2-open-port 8000 --amazonec2-instance-type &lt;instance-type&gt; --amazonec2-region &lt;region&gt; --amazonec2-zone &lt;zone&gt;  --amazonec2-subnet-id &lt;subnet&gt; --amazonec2-vpc-id &lt;vpc-id&gt; --amazonec2-userdata &lt;setup.sh&gt; --amazonec2-use-private-address=true &lt;node_name&gt;
</code></pre>

<p>this command creates a new node yielding a Docker installation and other Docker-related utilities. </p>

<p>I am trying to do the same for Kubernetes but the above-mentioned command does not install Kubernetes tools. I suppose that I can still this command and include Kubernetes installation commands in a script given as argument under the  --amazonec2-userdata, but still I wonder if there is a "docker-machine equivalent" for Kubernetes? In line with this, another question is whether docker-machine is appropriate at all to create a Kubernetes cluster on aws? </p>

<p>If <strong>no</strong> is the answer to both questions, then what is the appropriate approach to achieve the same goal?</p>

<p>Thank you</p>

João Matos
<p>Maybe what you want is here in this link: <a href="https://stackoverflow.com/questions/50248179/how-to-add-an-node-to-my-kops-cluster-node-in-here-is-my-external-instance">how to add an node to my kops cluster? (node in here is my external instance)</a></p>

<p>In K8s we have the config file where you set some vars like region, subnets, image, etc, since you have all set up you can just adjust the <code>desire</code> values and apply it the new config to your cluster.</p>
