Local Kubectl Setup
Setup kubectl and kubeconfig on your local computer
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.
Installing kubectl
kubectlInstall kubectl on your local computer:
Use these tools to install
kubectllocally.Run these commands to enable
kubectlto use the downloadedkubeconfig.
For Linux or macOS
export KUBECONFIG=/home/duplo/duploinfra-INFRASTRUCTURE_NAME.yaml # INFRASTRUCTURE_NAME is your DuploCloud Infrastructure name.For Windows
setx KUBECONFIG "%USERPROFILE%\Downloads\duploinfra-INFRASTRUCTURE_NAME.yaml" # INFRASTRUDownloading kubeconfig
kubeconfigThe 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 this article for more information about kubeconfig. Download kubeconfig one of two ways: using duploctl or from within the DuploCloud Portal:
Downloading kubeconfig using duploctl
kubeconfig using duploctlTo download kubeconfig using duploctl, follow these instructions.
Downloading kubeconfig from the DuploCloud Portal
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
kubeconfigfile.


Last updated
Was this helpful?
