<p>I want to know where do we usually  execute kubectl command ?</p>

<p>Is it on master node or a different node, because i executed kubectl command from one of the EC2 instances in AWS and master and worker node was completely  different ( total 3 node = 1 master and 2 worker node).</p>

<p>And when we create cluster ,does that cluster lies in worker node or it includes master node too?</p>

Penguin Tech
<p>The <code>kubectl</code> command itself is a command line utility that always executes locally however all it really does is issue commands against a Kubernetes server via its <a href="https://kubernetes.io/docs/concepts/overview/kubernetes-api/" rel="nofollow noreferrer">Kubernetes API</a> </p>

<p>Which Kubernetes server it acts against is determined by the local environment the command is run with. This is configured using a "kubeconfig" file which is is read from the KUBECONFIG environment variable (or defaults to the file in in $HOME/.kube/config). For more information see <a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters" rel="nofollow noreferrer">Configuring Access to Multiple Clusters</a></p>
