Enable Kubectl Shell for AKS

Configure the kubectl shell for for DuploCloud-managed AKS deployments

Step 1. Create a DuploCloud Service

  1. From the Tenant list box, select the correct Tenant.

  2. Navigate to Kubernetes -> Services.

  3. Click Add. The Add Service page displays.

  4. Enter the values in the table below in the fields on the Add Service page. Accept default values for fields not specified.

Add Service page field
Value

Name

kubectl

Cloud

Azure

Platform

AKS Linux

Docker Image

duplocloud/shell:terraform-kubectl-latest

Step 2: Create a Load Balancer

  1. From the DuploCloud Portal, navigate to Kubernetes -> Services.

  2. From the NAME column, select the kubectl service you created in the previous step.

  3. Select the Load Balancers tab, and click Configure Load Balancer.

  4. Select type Cluster IP.

  5. Set external and container ports to 80.

  6. In the Health Check field, enter /duplo_auth.

  7. In the Backend Protocol field, select TCP.

  8. Click Add.

Step 3: Add an Ingress

  1. In the DuploCloud Portal, navigate to Kubernetes -> Ingress, and click Add.

  2. In the Name field, enter kubect-shell. Add a Path that defaults all traffic to the kubectl Service we created in the previous step:

Step 4: Add the DNS Name to System Settings

  1. Navigate to Administrator -> Systems Settings.

  2. Select the System Config tab, and click Add. The Add Config pane displays.

  3. From the Config Type list box, select AppConfig.

  4. From the Key list box, select Other.

  5. In the second Key field, enter DuploShellfqdn

  6. In the Value field, paste the Ingress DNS name.

  7. Click Submit. kubectl shell access is enabled.

Last updated

Logo

© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates