<p>Lets say I have two computers; A and B. I created a kubernetes cluster using kops on AWS from computer A. How do I access the API of that cluster (like I do <code>kubectl get nodes</code>, it gives me the nodes of that cluster) using computer B? </p>

Harith
<p>You need to configure <code>kubectl</code> by defining a configuration file.</p>

<p>Since you are using <code>kops</code> you can use the instructions they're giving you here:</p>

<p><a href="https://github.com/kubernetes/kops/blob/master/docs/kubectl.md" rel="nofollow noreferrer">https://github.com/kubernetes/kops/blob/master/docs/kubectl.md</a></p>

<pre><code>export KOPS_STATE_STORE=s3://&lt;somes3bucket&gt;
NAME=&lt;kubernetes.mydomain.com&gt;
/path/to/kops export kubecfg ${NAME}
</code></pre>

<p>You need to run the above instructions on <code>computer B</code> and it has to be correctly configured to have access to the <code>&lt;somes3bucket&gt;</code> bucket.</p>

<p>What the command will do is create a configuration file that holds the URL of your <code>apiserver</code> and the authentication certificates. If you are on a unix-like environment, that file will be created in <code>$HOME/.kube/config</code>.</p>
