<p>I followed the guide to getting Kubernetes running in Azure here:</p>

<p><a href="http://kubernetes.io/docs/getting-started-guides/coreos/azure/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/coreos/azure/</a></p>

<p>In order to create pods, etc., the guide has you ssh into the master node <code>kube-00</code> in the cloud service and run kubectl commands there:</p>

<pre><code>ssh -F ./output/kube_randomid_ssh_conf kube-00
</code></pre>

<p>Once in you can run the following:</p>

<pre><code>kubectl get nodes
kubectl create -f ~/guestbook-example/
</code></pre>

<p>Is it possible to run these kubectl commands without logging to the master node, e.g., how can I set up kubectl to connect to the cluster hosted in Azure from my development machine instead of ssh'ing into the node this way?</p>

<p>I tried creating a context, user and cluster in the config but the values I tried using did not work.</p>

<p><strong>Edit</strong><br>
For some more background the tutorial creates the azure cluster using a script using the Azure CLI. It ends up looking like this:</p>

<pre><code>Resource Group: kube-randomid
    - Cloud Service: kube-randomid
      - VM: etcd-00
      - VM: etcd-01
      - VM: etcd-02
      - VM: kube-00
      - VM: kube-01
      - VM: kube-02
</code></pre>

<p>It creates a Virtual Network that all of these VM's live in. As far as I can tell all of the machines in the cloud service share a single virtual IP. </p>

<p>The <code>kubectl</code> command line tool is just a wrapper to execute remote HTTPS API REST calls on the kubernetes cluster. If you want to be able to do so from your own machine you need to open the correct port (443) on your master node and pass along some parameters to the kubectl tool as specified in this tutorial:</p>

<p><a href="https://coreos.com/kubernetes/docs/latest/configure-kubectl.html" rel="nofollow">https://coreos.com/kubernetes/docs/latest/configure-kubectl.html</a></p>
