Creating AWS ELK Cluster
elsctl
is a popular command-line tool to create and manage Elastic Kubernetes Service (EKS) on AWS. To install elsctl run following commands:# Download the latest version of eksctl commandline tool
$ curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
# Move eksctl to your default command path
$ sudo mv /tmp/eksctl /usr/local/bin
You can add
eksctl
to the bash completion by running:$ cat '. <(eksctl completion bash)' >> ~/.bashrc
Configure your aws credentials files
~/.aws/credentials
. It should define the aws_access_key_id
and aws_secret_access_key
:[default]
aws_access_key_id=A*****s
aws_secret_access_key=tm******f
You can also configure the default output and region in file
~/.aws/config
[default]
region=us-east-2
output=yaml
# Create a new Kubernetes cluster using eksctl command
$ eksctl create cluster --name jovianx-<COMPANY>-us-east-2 \
--region us-east-2 \
--version 1.15 \
--managed \
--nodegroup-name jovianx-system \
--node-type t3.large \
--nodes 2 \
--nodes-min 2 \
--nodes-max 20 \
--asg-access \
--external-dns-access \
--full-ecr-access \
--alb-ingress-access \
--auto-kubeconfig
Last modified 3yr ago