How to configure local kubectl to remote access to cluster? How to configure local kubectl to remote access to cluster? kubernetes kubernetes

How to configure local kubectl to remote access to cluster?


when I ssh into the Kubernetes master it doesn't know how to find files on my local machine nor do I know how to tell it

The prober way to interact with your Kubernetes cluster, is to send your requests to the API-Server. The API Server is a REST API, but it is easiest to use kubectl as your client tool.

When you setup your cluster, you should have a "kubeconfig" - this is configuration that your local kubectl client should use to authenticate to your cluster.