Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.8 KB

kubectl-token-for-non-administrators-aws-only.md

File metadata and controls

36 lines (25 loc) · 1.8 KB
description
Accessing kubectl without administrator privileges

Kubectl Token for non-administrators

If you don't have administrator privileges, use this procedure to access kubeconfig using the kubectl token. kubeconfig is a YAML file that stores cluster authentication information for kubectl. It contains a list of contexts to which kubectl refers when running commands. By default, kubeconfig is saved in the $HOME/ directory in the Linux operating system.

{% hint style="warning" %} Before beginning, refer to this article for more information aboutkubeconfig. {% endhint %}

(AWS Only) Updating the AWS Profile

Add the following code to your AWS profile:

[profile NAME] # Supply your AWS profile name
region=us-east-1
credential_process=duplo-aws-credential-process --tenant YOUR_TENANT --host --interactive

Downloading the kubectl token

{% hint style="info" %} The token that you download is for the selected Tenant only. It is intended for use with a non-human DuploCloud service account. {% endhint %}

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

  2. Select the Service 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. Paste the copied commands into the shell and run them.