Prerequisites
The instructions in this section assume that you will be running the commands to create and configure your AWS EKS cluster on a host that has been set up with the appropriate tools to do so.
AWS CLI tools
Install AWS CLI 2.7.1 or above for full compatibility with the different tools and versions
mentioned below. Don’t use apt
, yum
or snap
versions of the AWS CLI which install 1.x.
You must use the AWS CLI installer from the link below:
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install
$ sudo yum install git procps
Once you have the AWS CLI installed, you must configure it with your AWS credentials. When it asks
for the “Default output format”, enter json
:
$ aws configure
AWS Access Key ID [None]: [AWS Access Key ID]
AWS Secret Access Key [None]: [AWS Secret Access Key]
Default region name [None]: us-east-2
Default output format [None]: json
kubectl
The official instructions for installing kubectl
are
here: https://kubernetes.io/docs/tasks/tools/install-kubectl/
Anjuna supports EKS versions 1.20 through 1.23. Ideally, you should install a version of kubectl
that exactly matches the EKS version you wish to use, but using up to one minor version lower is
supported. Using a kubectl
version newer than your EKS version is not supported. For more details,
see this page:
https://kubernetes.io/releases/version-skew-policy/#kube-controller-manager-kube-scheduler-and-cloud-controller-manager
The following commands will set up your Linux host with kubectl
v1.23:
$ curl -LO "https://dl.k8s.io/release/v1.23.7/bin/linux/amd64/kubectl"
$ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
# If /usr/local/bin is not in your PATH, and bash is your shell, you can add it like this:
$ export PATH=$PATH:/usr/local/bin
$ echo 'export PATH=$PATH:/usr/local/bin' >> ~/.bashrc
# Verify that kubectl reports the version you installed
$ kubectl version --client
Install Terraform
Install Terraform: https://learn.hashicorp.com/tutorials/terraform/install-cli
The Terraform configuration for the Anjuna Nitro K8s Toolset has been tested on Terraform v1.3.1, but it should work on v1.1 or higher.
Install Helm
Before you install Helm, it’s important to know that each version of Helm supports different versions of EKS as noted in the Supported Version Skew section of Helm’s documentation.
Anjuna supports Helm versions 3.7.x-3.9.x, but only for the EKS versions supported under the kubectl
heading.
Install Helm using the instructions on the Installing Helm page of Helm’s documentation.