/
Setup Kubernetes CLI for EKS

Setup Kubernetes CLI for EKS

Prerequisites

  1. Install Kubernetes CLI tool - kubectl. Instructions can be found here: Install Tools

  2. Install the AWS CLI. Installing or updating to the latest version of the AWS CLI - AWS Command Line Interface

Create AWS SSO profile

  1. Run command and apply settings as below: aws configure sso

    SSO session name (Recommended): cloudservice SSO start URL [None]: https://iqx.awsapps.com/start# SSO region [None]: ap-southeast-2 SSO registration scopes [None]: sso:account:access
  2. The CLI will open a page in browser for authentication. Follow the page and Allow CLI access your account.

  3. Select the account “cloudservice@iqxbusiness.com” from account list.

  4. Select a role according to your need.

  5. Apply following for the rest of configurations.

    CLI default client Region [None]: ap-southeast-2 CLI default output format [None]: json

Connect kubectl to EKS cluster

  1. Create EKS context. Run the command below. You don’t need to run this command again once the context is created.

    aws eks update-kubeconfig --region ap-southeast-2 --name <your cluster name> --profile cloudservice
  2. Get all kubectl contexts available.

  3. Select the context for the cluster that you want to work on.

  4. Test the connection.

Refresh token

Related content

Migrate to use Azure Key Vault to host SSL certificate
Migrate to use Azure Key Vault to host SSL certificate
More like this
EKS deployment checklist
EKS deployment checklist
More like this
Deploying new OneList instance to EKS
Deploying new OneList instance to EKS
More like this
AKS deployment checklist
AKS deployment checklist
More like this
EKS - Amazon Elastic Kubernetes Hosting
EKS - Amazon Elastic Kubernetes Hosting
More like this