4

I am referring to this article about ECS task definition: Amazon ECS Task definitions

The Docker image to use with each container in your task

How much CPU and memory to use with each task or each container within a task

The launch type to use, which determines the infrastructure on which your tasks are hosted

The Docker networking mode to use for the containers in your task

The logging configuration to use for your tasks

Whether the task should continue to run if the container finishes or fails

The command the container should run when it is started

Any data volumes that should be used with the containers in the task

The IAM role that your tasks should use

If I have to draw any similarity with other orchestration frameworks, the above seems to be closely matching with Kubernetes pod.

So, is ECS Task Definition more or less same as POD specification in K8S????

2 Answers2

2

The short answer is YES but more similar to deployment rather than pods.

The longer answer is that ECS task definitions is a way to integrate containers to the AWS ecosystem and provides the configuration and metadata information to the ECS control plane which is AWS's propriety

Mickey Hovel
  • 982
  • 1
  • 15
  • 31
  • 1
    I have edited the answer, it is more similar in the concept of a deployment rather than a pod – Mickey Hovel Oct 02 '20 at 13:33
  • 1
    that's right, we can specify the number of instances required with deployments but not with pods. –  Oct 02 '20 at 13:35
  • if you think my answer is qualifying your question appreciate should you confirm my answer :) – Mickey Hovel Oct 02 '20 at 13:38
  • if S3 interests you - I have another AWS related Q - [In AWS, are S3 and IAM permissions different?](https://stackoverflow.com/questions/64180408/in-aws-are-s3-and-iam-permissions-different) –  Oct 03 '20 at 03:26
  • I have vast experience and researches running with the above policies and differentiation. Will put my "2 cents" on the question – Mickey Hovel Oct 04 '20 at 06:14
1

From my point of view, the task definition is similar to pod rather than deployment. because deployment in kubernetes defines the replication of the pod/instances, however, pod just defines the template of one instance, and may include several containers, but the pod is the minimum unit in kubernetes. In aws, task definition is the template of the minimum unit of service, and service defines the replication of the tasks.

So pod = task, deployment = task. this is only my understanding. may not exactly.

AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
Levy K
  • 11
  • 1