• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

3 Easy Steps to Create EKS(kubernetes) Cluster in AWS

by wing

One of the most easy to use tool for the beginners is that eskctl that help to quickly deploy Kubernetes cluster in AWS. We will share with you easy 3 steps creating a AWS managed EKS cluster with one EC2 worker node. To access the cluster we will install a dashboard using kube proxy that will allow you to access the dashboard from your local machine.

  1. install eskctl tool
  2. create the cluster
  3. setup the dashboard.

  1. Install eskctl tool

choco install -y eksctl

reference to install eskctl in Windows/Linux/Macos: https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html

https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html  

  1. Create a EKS cluster

Create a cluster.yml file and add the following code. Make sure to replace the cluster name, region, VPC id, subnets and security group to match your requirements.

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: eks-cluster
region: eu-west-1
vpc:
id: "vpc-fec94a98"
securityGroup: "sg-52624428" # this is the ControlPlaneSecurityGroup
subnets:
private:
private1:
id: "subnet-0d323c180221aa9be"
private2:
id: "subnet-0ae45d49651f05b6d"
private3:
id: "subnet-0f56fc6f47d700b50"
public:
public1:
id: "subnet-7ea97f18"
public2:
id: "subnet-1371d55b"
public3:
id: "subnet-23352578"
nodeGroups:
- name: ng-1
instanceType: t3.micro
desiredCapacity: 1
- name: ng-2
instanceType: t3.micro
desiredCapacity: 1

  1. create dashboard

Make sure kubectl is installed in your local machine.

Run the below command to download and install the dashboard.

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.5/aio/deploy/recommended.yamlDownload the u

To connect to the Kubernetes dashboard, get the secret and copt it.

kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk ‘{print $1}’)

Next, start the kube proxy

kubectl proxy

Paste the followng URL in the brower and the enter the token that you copied earlier

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/login

To completely remove the cluster aloing with the worker nodes, run eksctl delete command and make sure to replace

the name of the cluster “eks-cluster” by your  cluster’s name.

eksctl delete cluster –name eks-cluster –region eu-west-1

References:

https://docs.aws.amazon.com/eks/latest/userguide/dashboard-tutorial.html

https://docs.aws.amazon.com/eks/latest/userguide/dashboard-tutorial.html [2] – https://www.eksworkshop.com/beginner/

https://www.eksworkshop.com/010_introduction

Related posts:

  1. How to Install AWS CLI and Terraform in Jenkins Docker Container
  2. How to Setup a Maintenace Page Message in AWS ALB
  3. How to Enable Backend Access to AWS Fargate Container Using ECS EXEC
  4. How to Upgrade AWS CDK to Minor version

Filed Under: AWS

Primary Sidebar

Please help us sharing

Categories

  • AWS
  • Basics
  • Containers
  • Cryptocurrency
  • Cyber
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Law & Human Rights
  • Network Security Tips
  • Off Track
  • Social Media Governance
  • Tech Comparisons
  • Tech Stack Suitability
  • Telecom
  • Tutorial

CISSP Sample Test

Take a CISSP Sample Test

CISA Sample Test

CISA IT governance Sample test

Please Follow Us

Contact us for Ads

Go to Contact Form

Search

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

audit AWS backup basics browser check cisco cloud computer configuration cyber data database email gmail hsrp ids iis informaiton internet kubernetes linux load balancing malware microsoft network protection redundancy risk router security security tips server social media SSL switch test tools vpn vrrp web webserver website windows wordpress

Copyright © 2010-2025 ·All Rights Reserved · SecurityWing.com