Creating a Kubernetes cluster using the AWS CLI and eksctl

Creating an AWS Kubernetes Cluster

Bunnyshell makes it easy to connect an AWS EKS cluster to your Organization, deploy your application on it, and manage environments.

1. Install the AWS CLI. Instructions on how to do that are available on the AWS documentation websitearrow-up-right.

circle-info

You can configure the AWS CLI using the aws configure command.

2. Install eksctl. Read more on how you can do this on the eksctl websitearrow-up-right.

3. Create a cluster definition yaml file by following the instructions provided in this documentationarrow-up-right.

4. Connect your kubectl by downloading the config from AWS using the following command:

aws eks update-kubeconfig --region region-code --name cluster-name
circle-exclamation

5. By default the configuration will be downloaded to ~/.kube/config-file-name. View this file and extract the relevant information provided below:

circle-info

When connecting the cluster to Bunnyshell, you have to provide the following credentials:

  • Cluster name

  • AWS Cluster name

  • Cluster URL

  • Certificate

  • Access Key ID and Secret Access Key

AWS Cluster name: Corresponds to the name of the cluster . Do not add the subdomains added in the config file.

  • Cluster URL: Corresponds to the server key in the below example.

  • Certificate: Corresponds to the certificate-authority-data in the below example.

  • Access Key ID and Secret Access Key: These two credentials are needed to programmatically obtain a token for cluster access. These can be found in the ~/.aws/credentials file after you have run the aws configure command suggested earlier.

circle-exclamation

Last updated

Was this helpful?