Accessing Kubernetes Clusters
The steps to access the Kubernetes clusters differ based on the method used for cluster creation.
This section contains the following topics:
Accessing Kubernetes Clusters on vSphere
Procedure
Step 1 |
To download the Kubeconfig file that provides you access to the Kubernetes cluster, perform these steps on the Cisco Container Platform web interface:
Kubeconfig file is downloaded to your local system.
|
Step 2 |
To get the Kubernetes default token, perform these steps in the kubectl utility: |
Step 3 |
To set up the Kubernetes dashboard access, perform these steps: |
Accessing Kubernetes Clusters for On-prem AWS IAM Enabled Clusters
Procedure
Step 1 |
To download the |
Step 2 |
To get the Kubernetes default token, perform these steps in the kubectl utility: |
Step 3 |
To set up the Kubernetes dashboard access, perform these steps in the Kubernetes dashboard:
|
Accessing Kubernetes Clusters on AWS EKS
Kubeconfig
file along with the kubectl command line tool to access the clusters on AWS EKS.
Procedure
Step 1 |
To download the |
Step 2 |
To set up the Kubernetes dashboard access, follow the steps provided on the Dashboard Tutorial page. |
Accessing Kubernetes Clusters on AKS
Kubeconfig
file along with the kubectl command line tool to access the clusters on AKS.
Procedure
Step 1 |
To download the |
Step 2 |
To set up Kubernetes dashboard access, follow these steps: |
For more information, see Dashboard Tutorial.
Note |
In the Dashboard Tutorial page, you must follow the steps in the RBAC enabled cluster section because currently, in Cisco Container Platform, RBAC is enabled by default for all clusters on AKS. |
Accessing Kubernetes Clusters on GKE
Before you begin
-
Install Google Cloud SDK on your computer. For more information, see Installing Google Cloud SDK.
Note
You can choose a suitable installation option depending on the OS installed on your computer.
-
After the SDK is installed, add the
GOOGLE_CLOUD_SDK_INSTALLATION_DIR/bin
path to the environment variablePATH
. -
Setup the GCP credentials.
For more information, see Configuring cluster access for kubectl.
You can configure your computer to access clusters on GKE in one of the following ways:
Accessing Clusters on GKE using GKE Dashboard
We recommend that you use the GKE dashboard that is available on the GCP console to view, inspect, manage, and delete resources in your clusters.
For more information, see GKE Dashboard.
Note |
The open-source Kubernetes dashboard is deprecated for clusters on GKE. |
Accessing Clusters on GKE using Kubeconfig and Kubectl
Kubeconfig
file along with the kubectl command line tool to access the clusters on GKE.
Procedure
Generate the
|