Reasons to use EKS over ECS (2020 Oct) ?

Is there any reason to use EKS over ECS if:

  1. We are not planning to manage EC2; means we only want to use Fargate

  2. We are fully invested on AWS. No plans to migrate to other cloud or on premise

  3. We have enough AWS skilled people in general (not specifically ECS), but have fewer K8s skilled people (but possible to hire or train)

  4. The applications we are planning to deploy are regional. Will only be used by users in the region. We will only deploy in one AWS region. The peak usage could be around 10k concurrent sessions. Will go down to few hundred users in non peak periods.

  5. We need to have full control on the VPC and networking in general.

  6. We will be using terraform exclusively for the deployment.

  7. Our CICD pipeline will be using gitlab.


Related discussions:

Honestly EKS should be used if you already use k8s elsewhere already.

ECS, especially if you are going to use fargate on both, is more then capable

Unless you need specific functionality that only Kubernetes provides, no.

K8s has a much larger ecosystem with significantly more tools and more people constantly developing it. ECS is an AWS only product. I can see ECS working fine for many people, but our applications were complex enough we didn’t want to have to worry about being unable to use the latest and greatest tools on ECS. Also, our K8s configurations end up being fairly portable, however we have no plans to ever move off AWS.

Based on the reasons listed you should absolutely use ECS.

Ci pipeline deployments and color flips are much easier in kubernetes imo.

Haven’t tried code deploy for ecs but I’m not expecting much as you can’t deploy a blue green code deploy project with cloudformation which makes me think it’s second class

We will be using terraform exclusively and gitlab for cicd. Let me add that also into the post

The only reason for using kubernetes with that kind of load /applications I have seen is that “it sounds cool”. Eks (or any managed or unmanaged else setup) is massive overkill unless you already know that what you want to achieve can’t be done any other way. Probably a controversial opinion but it’s based on my personal experience with a team of developers eager to try next next shiny toy and a 6 month project started 2 years ago that still isn’t finished

IMHO, CloudFormation sucks. Terraform is definitely a better choice, especially if you need to manage stuff that is not 100% AWS based (external services like Mongo Atlas for instance).

I use GitLab + Terraform + https://github.com/fabfuel/ecs-deploy … Works like a charm… Haven’t deployed anything manually for a long time…

I don’t use ECS or EKS so I’m really speaking out of my ass, but I saw this when it came across the wire and I don’t know if it addresses your issue: https://aws.amazon.com/about-aws/whats-new/2020/05/aws-cloudformation-now-supports-blue-green-deployments-for-amazon-ecs/

One differentiator is the ability to run an overlay network on K8s, which could be useful if you plan to host many services (tasks/pods) per cluster node.

There is a limit to the number of ENIs you can attach to an EC2 depending on instance type.

You can run a service mesh in ECS, which should shoot some of the shiny-toy drooling from the K8S fanbois.

K8S is way overkill. You will need a team specifically dedicated to managing your K8s environments, even if it’s EKS; there are namespaces, configurations, etc, plus the versions keep marching ahead and if you don’t keep up, you’ll very rapidly go stale.

Stick with ECS. It’s stable, it works. Features that are actually useful are released regularly.

Source: have built and run several k8s environments, both on-prem, and using EKS, AKS, and GKE. You don’t need it.

The main advantage of k8s in this case is that there are so many more 3rd party tools available compared to ECS. Things like monitoring, debugging, management, etc.

Also devs can set up a local k8s environment similar to production on their laptops very easily nowadays.

We have implemented ECS this year and we couldn’t be happier. We also use Terraform to manage the services. Feel free to ask if you have any questions.

Do you miss out on any of the k8 ecosystem tools and features?

How long has it been?

How long has it been?

We finished the migration a few months ago.

Do you miss out on any of the k8 ecosystem tools and features?

It’s hard not to come across a post announcing a new tool for K8s and think “damn, I wish I could use this!”, because some of the things people are building around K8s are truly incredible. But to be honest a lot of these things are either gimmicky and/or unnecessary to run 99% of all the applications in the world. Basic operational things like monitoring, logging, tracing, deploying, RBAC, etc., are very well covered in ECS. And furthermore, sometimes I find that this “lack” of options results in greater productivity, less time wasted researching, testing and discussing tools and more time focusing on the end goals.

Not really relevant if you use Fargate though, right?

I think so. Each task on fargate gets its own IP.

so yeah

Stick with ECS.

We are an all ECS shop. (ECS + ALB + Route53). This setup is ideal for almost 99% of our use-case.

Ecs is pretty sick imo. Gives me all the features I need. We are not on fargate, so I need to configure the ec2 instances myself, but that is also not a big deal since i get to bake in my images.

Look at AppMesh. we currently do not need it, but it would be awesome thing to have and completely eliminate the load balancers.

One of the largest considerations would be tenancy. If you are not planning on providing a tenancy feature (internal or external facing) then it may not make any sense for you. The other factor is how much you invest into native AWS vs open source/3rd party tools.

While the gap has narrowed considerably (Fargate + EKS persistent storage, for example) there are still gaps. Container Insights is not supported on Fargate EKS yet and neither is FireLens.

As others have mentioned, if you don’t want to manage namespaces or Kubernetes RBAC, that’s also a tick in the “no go” box. Even with EKS, there is still management of Kubernetes. This extends into automation somewhat as well, even with eksctl and terraform there are certain things you’d have to potentially build out (which requires Kubernetes knowledge).