Deploy to Kubernetes using Terraform provider

Опубликовано: 07 Октябрь 2024
на канале: Houssem Dellai
8,209
55

Deploy Kubernetes objects like Pod, Deployment, Service, Namespace... using Terraform.
Infrastructure or Ops or DevOps teams will use IaC tools like Terraform to provision infrastructure. But their role might stop there. For some organizations, these teams should maintain the security, good configuration of applications on top these resources.

A good example here is #Kubernetes. Teams will use Terraform to create the AKS cluster in #Azure for example. But they need also to deploy all the 'platforms' to manage the cluster like Calico, Monitoring tools (Prometheus, Grafana..), Logging (EFK, Azure Container Insights..). Thses tools are not the responsibility of the project teams. So, the infra teams should deploy apps into the cluster.

Kubernetes uses natively the YAML manifest configuration files. However, the infra team wants to continue using the same tool (Terraform) to also deploy Kubernetes objects and Helm Charts into the cluster.

Well, that is possible thanks to Terraform provider for Helm and provider for Kubernetes.

Demo env: https://github.com/HoussemDellai/terr...
Follow me on Twitter for more content:   / houssemdellai