What is Tofu Controller and how can it be used?
mainTofu Controller (formerly Weave TF-Controller) is a controller for Flux designed to reconcile OpenTofu and Terraform resources using GitOps principles. It allows you to manage infrastructure and application resources within the Kubernetes and IaC universe at different levels of automation.
Depending on your needs, you can adopt one of four GitOps models:
- GitOps Automation Model: Full automation from provisioning to enforcement (e.g., managing an entire EKS cluster).
- Hybrid GitOps Automation Model: Partial automation of existing infrastructure (e.g., managing only specific nodegroups or security groups within an existing cluster).
- State Enforcement Model: Using GitOps to enforce an existing
TFSTATEfile without modifying other aspects of the infrastructure. - Drift Detection Model: Using GitOps solely to detect drift against an existing
TFSTATEfile, allowing for manual intervention when changes occur.