Skip to content

Commit

Permalink
updated eksctl file
Browse files Browse the repository at this point in the history
  • Loading branch information
ravdy committed Jul 20, 2021
1 parent ca0dda6 commit 94bb203
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions kubernetes_setup_using-eks.md → kubernetes_setup_using_eksctl.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
kubectl
# Setup Kubernetes on AWS EKS

You can follow same procedure in the official AWS document [Getting started with Amazon EKS – eksctl](https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html)
Pre-requisites:
- an EC2 Instance

#### AWS EKS Setup
1. Setup kubectl
a. Download kubectl version 1.21
b. Grant execution permission
c. move to /usr/local/bin
a. Download kubectl version 1.20
b. Grant execution permissions to kubectl executable
c. Move kubectl onto /usr/local/bin
d. Test that your kubectl installation was successful
```sh
curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.19.6/2021-01-05/bin/linux/amd64/kubectl
Expand All @@ -22,18 +27,29 @@ kubectl
```

3. Create an IAM Role
`Note: create IAM user with programtic access if your bootstrap system is outside of AWS`
`Note: create IAM user with programmatic access if your bootstrap system is outside of AWS`
IAM user should have access to
IAM
EC2
VPC
CloudFormation
4. Create your cluster and nodes
eksctl create cluster \
--name my-cluster \
--region ap-south-1 \
--node-type t2.small \
```sh
eksctl create cluster --name cluster-name \
--region region-name \
--node-type instance-type \
--nodes-min 2 \
--nodes-max 2
example:
eksctl create cluster --name valaxy-cluster
--region ap-south-1 \
--node-type t2.small \
```
5. Validate your cluster using by creating by checking nodes and by creating a pod
```sh
kubectl get nodes
kubectl run pod tomcat --image=tomcat
```

0 comments on commit 94bb203

Please sign in to comment.