Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2.08 KB

kubectl-token.md

File metadata and controls

37 lines (23 loc) · 2.08 KB
description
Set up kubectl within the DuploCloud Portal by downloading the kubectl token

Kubectl Tokens and Access Management

Downloading a 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 %}

  1. In the DuploCloud Portal, navigate to Kubernetes -> Services.
  2. 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

The kubectl Token window in the DuploCloud Portal

Downloading a kubectl Token for Non-Administrators

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.

  1. In the DuploCloud Portal, navigate to Kubernetes -> Services. The Services page displays.

  2. Select the Service name from the Name column.

  3. From the KubeCtl item list, select KubeCtl Token. The KubeCtl Token window displays.\

    Token window with kubectl commands for creating token

  4. Click Copy to copy the kubectl commands in the Token window to your clipboard.

  5. From the KubeCtl item list, select KubeCtl Shell to launch the shell instance.