(for MACOS)
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
aws --version
pip3 install awscli --upgrade --user
- Set up an IAM user and give them permissions for EKS
- on local computer enter credentials of IAM user:
aws configure
(using homebrew )
brew tap weaveworks/tap
brew install eksctl
brew upgrade eksctl && brew link --overwrite eksctl
eksctl version
(already installed by homebrew with eksctl)
###Activate AWS STS
Go to console and activate region (https://console.aws.amazon.com/iam/home?region=us-east-2#/account_settings).
/aws/service/eks/optimized-ami/1.18/amazon-linux-2/recommended/image_id
ami-04f0f3d381d07e0b6
- Create launch template
aws ec2 create-launch-template \
--version-description WebVersion1 \
--launch-template-name TemplateForEKS2 \
--tag-specifications 'ResourceType=launch-template,Tags=[{Key=testkey,Value=testval}]' \
--launch-template-data file://template/launch-config-basic.json \
--dry-run
Did not use because it throws an error:: --launch-template-name TemplateForEKS \
-
Add launch config template id to test-eks-cluster.yaml. It will look like this: lt-0428d9790bd720765
-
Create Cluster
eksctl create cluster --config-file template/test-eks-cluster.yaml
[ℹ] if you encounter any issues, check CloudFormation console or try 'eksctl utils describe-stacks --region=us-west-2 --cluster=test-cluster'
[ℹ] CloudWatch logging will not be enabled for cluster "test-cluster" in "us-west-2"
[ℹ] you can enable it with 'eksctl utils update-cluster-logging --enable-types={SPECIFY-YOUR-LOG-TYPES-HERE (e.g. all)} --region=us-west-2 --cluster=test-cluster'
[ℹ] Kubernetes API endpoint access will use default of {publicAccess=true, privateAccess=false} for cluster "test-cluster" in "us-west-2"
[ℹ] 2 sequential tasks: { create cluster control plane "test-cluster", 2 sequential sub-tasks: { no tasks, create managed nodegroup "ng-linux" } }
[ℹ] deploying stack "eksctl-test-cluster-cluster