Terraform, Kubernetes, Mesos etc - how are they connected

12/7/2018

Reading a lot on internet but the information is not clear or mixedup so I thought I will ask the question here.

I am trying to understand how Terraform is same or different from container orchestration tools like Kubernetes, Mesos etc.

Can Terraform work independently or Kube and Mesos? How is it connected to docker containers?

Can someone please shed the light?

Thanks!!!

-- Dev Dev
kubernetes
mesos
terraform

2 Answers

12/7/2018

I don't know enough about Mesos as I would like, but I do know about Kubernetes and Terraform. Despite I'm not an expert the general basics between this tools have a different purpose. While Terraform deals with the generation of the infrastructure in the cloud by using their apis, Kubernetes deals with the administration and orchestration of containers in the undergroown infrastructure by using the api of the container daemon such the docker daemon.

So generally talking the Terraform main point is to make transparent the creation of the cloud infrastructure where you write what you want to have, servers, network, security policies, some PaaS Service and Kubernetes is the orchestrator of containers.

Hope this helps you. Please, in the case of someone saws a mistake. Remark it so we all improves.

-- LucasPC
Source: StackOverflow

12/7/2018

Terraform - A Tools to Build your Infrastructure an open-source project Hashicorp labs if you are aware with AWS and heard of CloudFormation both work in same manner but Terraform have some better feature you can write your whole Infrastructure as a Code run it in one click and decommissioned it in one click.

For more you must visit the site: https://www.terraform.io

Now Kubernetes (An open source project by Google) and Apache-Mesos( Or DC/OS) An project by Apache foundation both are used for Container orchestration (and I’m purposely avoiding using the word Docker) is not for everyone and does not answer every need.

Mesos was launched first but it was really hard to manage Mesos networking that time. and In 2014 there was the first Release of Kubernetes comes in.

Now, DC/OS (the Distributed Cloud Operating System) is an open-source, distributed operating system based on the Apache Mesos distributed systems kernel.

It's in the race with Kubernetes .

I would suggest you must go through this article to get a better understanding of Kubernetes vs Mesos : https://logz.io/blog/kubernetes-vs-mesos/

And Yes they are not related to Terraform at all.

Thanks

-- Prabhat Singh
Source: StackOverflow