I am a bit confused about the individual roles of Kubernetes and Terraform when using them both on a project.
Until very recently, I had a very clear understanding of both their purposes and everything made sense to me. But, then I heard in one of Nana's videos on Terraform, that Terraform was also very advanced in orchestration and I got confused.
Here's my current understanding of both these tools:
Kubernetes: Orchestration software that controls many docker containers working together seamlessly. Kubernetes makes sure that new containers are deployed based on the desired infrastructure defined in configuration files (written with the help of a tool like Terraform, as IaC).
Terraform: Tool for provisioning, configuring, and managing infrastructure as IaC.
Clarification:
According to RedHat, “Orchestration is the automated configuration, management, and coordination of infrastructure.”
For example, if we manually describe a Docker container as a resource, and that said Docker container is then deleted, we need to manually run that Terraform plan again for the Docker container to be re-deployed. To automatically handle this, that's where Kubernetes comes into play (orchestration).
So, when we say that Terraform is a good tool for orchestration, what are we really saying?
I hope someone can clear that out for me!