Authenticate with cluster kubeconfig
Раздел «For cluster administrators»: быстрый переход по подразделам
На этой странице
Before you authenticate, review cluster access options from the console.
To access the cluster from the console with kubeconfig downloaded from the GUI:
- In the cluster GUI, in the upper right corner of the screen, click the arrow next to the user name. Select “Download Kubeconfig” from the drop-down list. The download will start automatically.
Screenshot

The cluster kubeconfig is downloaded as clustername.conf
- After you download cluster kubeconfig, check the files in the
~/.kubefolder from the command line.
- If the folder does not contain a
configfile, move the downloaded kubeconfig to~/.kubeand rename it toconfig. Verify the location of theconfigfile.
Command
# Move to ~/.kube and rename clustername.conf
mv /downloads/clustername.conf ~/.kube/config
# Verify the config location
ls ~/.kube/ | grep config
Where /downloads/clustername.conf is the path to clustername.conf downloaded from the GUI.
- If
~/.kubealready contains aconfigfile with kubeconfig from another cluster, use one of the following approaches:
Method 1
Overwrite it with the new cluster kubeconfig.
Method 2
Export the KUBECONFIG variable to point to the new cluster kubeconfig. In this case, the other cluster’s kubeconfig remains in config.
Command to update config data
# Move to ~/.kube and rename clustername.conf
mv /downloads/clustername.conf ~/.kube/config
Where /downloads/clustername.conf is the path to clustername.conf downloaded from the GUI.
Command to export the variable
export KUBECONFIG=/root/.kube/clustername.conf
Replace /root/.kube/clustername.conf with the path to the cluster kubeconfig.
- Test cluster access using
kubectlcommands.
Example
# Test connection to the cluster
kubectl cluster-info
# List cluster nodes
kubectl get nodes
If cluster access fails, see Actions for common access errors.