Image for post
Image for post

EKS is the new AWS managed Service for Kubernetes launched at last Re-Invent 2018. EKS is not available in all regions right now. EKS an option for those who don’t want to use KOPS. For this blog post, I will show how to easily set up a kubernetes cluster in AWS using EKS. EKS has some benefits, first of all, is a managed service that you are not locked in since the API is kubernetes based so you can easily migrate to other kubernetes installation or even other kubernetes installation in other cloud vendor or on-premises.

EKS Benefits

  • Managed Service without lock-in (Kubernetes API, specs, kubectl)
  • There is no Control Plane management (Multi-AZ, Automatic patches, and updates)
  • Secure by Default (Secure and encrypted communications between worker nodes and master)
  • Conformant and Compatible (EKS runs certified kubernetes. Compatible with standard k8s envs)

IMHO this is what most of the companies are looking for, in other words, *Serverless*.

The Pain Points

I don’t want to paint a rosy picture of EKS like any new technology there are problems such as:

  • Poor Documentation — very few docs
  • Lack of Observability — It’s a kind of black blocks compared with Kops.
  • When you do something wrong and har to figure it what you did it wrong.
  • Error-Prone — Is very easy to make mistakes(eksctl fix that)
  • In a Long Run is more expensive than running on EC2 with Kops
  • Alpha APIS is not supported.

It’s important to keep in mind that EKS is a very new service and it should get better and the time passes.

Running Kubernetes in EKS using EKSCTL

EKSCTL is a great tool. Written in go, makes eks cluster creatin way less error-prone and many simples to get a cluster up and running. So let’s get started! Basically, we will install the AWS Authenticator and EKSCTL them we can create the cluster and deploy nginx in kubernetes after that we can access the nginx application in the browser(before that you will need to enable the SG access for your IP). Them we destroy the cluster.

Creating a cluster

Image for post
Image for post

Deploying nginx in Kubernetes

Image for post
Image for post

Nginx up and running on AWS(Need to enable 80 port SG access)

Nginx AWS ELB Created by EKS and K8s with EKSCTL

Image for post
Image for post

K8s Nodes Running on EC2 via EKS and EKSCTL

Image for post
Image for post

Destroying the cluster

Image for post
Image for post

Originally published at diego-pacheco.blogspot.com.

Written by

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. diegopacheco.github.io (Opinions on my own)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store