description |
---|
Set up kubectl within the DuploCloud Portal by downloading the kubectl token |
Connect directly to your Kubernetes cluster namespace using a kubectl
token. This facilitates direct interaction with your Kubernetes cluster through a command-line interface.
{% hint style="warning" %}
If you attempt to start a kubectl
shell instance and receive a 503 in your web browser, ensure that the Duplo-shell Service in the Default Tenant and the Hosts that support it are running.
{% endhint %}
- In the DuploCloud Portal, navigate to Kubernetes -> Services.
- From the KubeCtl list box, select KubeCtl Token. The Token window displays. Copy the contents to your clipboard.
The Kubernetes Services page with the KubeCtl Token option highlighted
If you don't have administrator privileges, configure AWS credentials for interacting with cloud resources and download a kubectl
token tied to a service account. This token is specifically for the selected Tenant. It is designed for use with a DuploCloud service account, not for human users.
-
In the DuploCloud Portal, navigate to Kubernetes -> Services. The Services page displays.
-
Select the Service name from the Name column.
-
From the KubeCtl item list, select KubeCtl Token. The KubeCtl Token window displays.\
Token window with
kubectl
commands for creating token -
Click Copy to copy the
kubectl
commands in the Token window to your clipboard. -
From the KubeCtl item list, select KubeCtl Shell to launch the shell instance.