Local Kubectl Setup
Setup kubectl and kubeconfig on your local computer
Last updated
Was this helpful?
Setup kubectl and kubeconfig on your local computer
Last updated
Was this helpful?
kubectl
is the command-line tool used to interact with Kubernetes clusters. It allows you to deploy applications, inspect and manage cluster resources, and troubleshoot issues directly from your terminal. This setup guide will walk you through installing kubectl
on your computer, downloading the kubeconfig
file, and configuring kubectl
for your environment.
kubectl
Install kubectl
on your local computer:
Use these to install kubectl
locally.
Run these commands to enable kubectl
to use the downloaded kubeconfig
.
kubeconfig
The kubeconfig
file is a configuration file used by kubectl
to connect to a Kubernetes cluster. It contains essential information such as the cluster's API server address, authentication credentials, and context settings that define which cluster and namespace kubectl
should interact with. Refer to for more information about kubeconfig
. Download kubeconfig
one of two ways: using duploctl
or from within the DuploCloud Portal:
kubeconfig
using duploctl
To download kubeconfig
using duploctl
, follow .
kubeconfig
from the DuploCloud PortalIn the DuploCloud Portal, navigate to Administrators -> Infrastructure.
In the NAME column, select the Infrastructure where you want to set up kubectl
.
Click the EKS (for AWS), GKE (for GCP), or the AKS (for Azure) tab. The Download Kubeconfig For Plan pane displays.
Click Download Kubeconfig to download the kubeconfig
file.
If you don't have Administrator access, you can use duplo-jit
to access Kubernetes. When you click Download kubeconfig, the Access to Kubernetes from your Workstation window gives you the option to install to access your Kubernetes cluster without obtaining permanent access keys.