Creating AWS ELK Cluster

1. Installing eksctl commandline tool

elsctl is a popular command-line tool to create and manage Elastic Kubernetes Service (EKS) on AWS. To install elsctl run following commands:
1
# Download the latest version of eksctl commandline tool
2
$ curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
3
4
# Move eksctl to your default command path
5
$ sudo mv /tmp/eksctl /usr/local/bin
Copied!
You can addeksctl to the bash completion by running:
$ cat '. <(eksctl completion bash)' >> ~/.bashrc

2. Set AWS account credentials

Configure your aws credentials files ~/.aws/credentials. It should define the aws_access_key_id and aws_secret_access_key:
1
[default]
2
aws_access_key_id=A*****s
3
aws_secret_access_key=tm******f
Copied!
You can also configure the default output and region in file ~/.aws/config
1
[default]
2
region=us-east-2
3
output=yaml
Copied!
More details on aws command-line tool configuration can be found HERE.

3. Create a new EKS Cluster

1
# Create a new Kubernetes cluster using eksctl command
2
$ eksctl create cluster --name jovianx-<COMPANY>-us-east-2 \
3
--region us-east-2 \
4
--version 1.15 \
5
--managed \
6
--nodegroup-name jovianx-system \
7
--node-type t3.large \
8
--nodes 2 \
9
--nodes-min 2 \
10
--nodes-max 20 \
11
--asg-access \
12
--external-dns-access \
13
--full-ecr-access \
14
--alb-ingress-access \
15
--auto-kubeconfig
Copied!
Last modified 1yr ago