/
Setup Kubernetes CLI for EKS
Setup Kubernetes CLI for EKS
Prerequisites
Install Kubernetes CLI tool - kubectl. Instructions can be found here: Install Tools
Install the AWS CLI. Installing or updating to the latest version of the AWS CLI - AWS Command Line Interface
Create AWS SSO profile
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
The CLI will open a page in browser for authentication. Follow the page and Allow CLI access your account.
Select the account “cloudservice@iqxbusiness.com” from account list.
Select a role according to your need.
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
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
Get all kubectl contexts available.
Select the context for the cluster that you want to work on.
Test the connection.
Refresh token
, multiple selections available,
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