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

securitywing

Menu
  • About
  • Must Read
      • IIS Performance Boost
      • RFID Security
      • Web App Security Testing
      • How to Secure Home Network
      • Prevent Cross-Site Scripting Attacks
      • Renew Self-Signed Certificates
      • Penetration Testing Tools
      • VPN Concentrator
      • Forensic Investigation Tools
      • Digital Certificates
      • Cloud Security Issues
      • Advanced Evasion Prevention
      • Firewall Types
      • Tips to Prevent Data Exfiltration
      • Classified Info Handling
      • MySQL Security
      • Definition of 7 Types of Malware
      • VOIP Security
      • Why Antivirus Software Fails
      • 15 Network Security Vulnerabilities
      • Web App Security
      • IT Security Standards
      • Types of Virtualization
      • Android Security
      • Digital Signature
      • Advanced Malware Protection
    • Close
  • Consultancy
  • Contact

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:

  • No Related Posts

Filed Under: AWS

Primary Sidebar

CISSP Sample Test

Take a CISSP Sample Test

CISA IT governance Sample test



Twitter Follow @securitywing

Categories

  • AWS
  • containers
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Network Security Tips
  • Off Track
  • Telecom
  • Tutorial

Pages

  • About
  • Best IT Security Certification Exam
  • CISA IT governance Sample test
  • CISA Sample Test
  • CISSP Sample Test Online
  • Consultancy
  • Contact

Popular Posts

  • 3 Steps to Install Miniku...
  • 8 Effective Ways to Impro...
  • How to Renew Self-Signed...
  • Yahoo Mail Security Setti...
  • How to install a new Goda...
  • How to Setup AWS CloudFro...
  • Host Based IDS vs Network...
  • 11 Essential Skills of an...
  • 63 Web Application Securi...
  • 3 Simple Steps to Capture...

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 data database email firewall gmail hsrp ids iis informaiton internet it kubernetes linux load balancing malware microsoft network protection redundancy risk router security security tips server SSL switch test tools vpn vrrp web webserver website windows wordpress

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