Split your Kubernetes Infrastructure and Application Deployments
A common pitfall when working with Terraform and Kubernetes is deploying the Kubernetes infrastructure in the same Terraform workspace as your applications on top of it.
For example, if I were using AWS’ EKS offering, my Terraform workspace that creates the EKS cluster should not deploy Kubernetes components.
Deploying the infrastructure and the applications in the same workspace will eventually cause you problems with the dependencies of the Kubernetes providers.
You can have a separate Terraform workspace that deploys your core platform infrastructure, such as your logging and monitoring stack.
For business applications, I would avoid using Terraform to deploy them to Kubernetes.
Use a tool that’s designed for orchestrating Kubernetes deployments instead.
Master GitHub Actions with a Senior Infrastructure Engineer
As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.
Not sure yet? Check out the archive.
Unsubscribe at any time.