A Kubernetes cluster drifts the moment your Ingress resources stop matching the desired state in your IaC repository. One manifest changed in Git. One value altered in the live cluster. Now your traffic flows through rules you didn’t plan.
IaC drift detection is not optional. It is the only way to guarantee that what you declared is what runs. For Ingress resources, the stakes are higher. They control how services are exposed, how routes are resolved, and how TLS is enforced. Drift here means broken paths, misrouted requests, or open security gaps.
Drift can come from manual edits in kubectl, scripts run outside the CI/CD pipeline, or emergency patches that never get mirrored back to Git. Without detection, the divergence grows silently until an outage forces you to investigate after the fact.
To track IaC drift for Ingress resources, pull live state from the cluster using kubectl get ingress -o yaml or the Kubernetes API. Compare it against the manifests in your source repository. Tools that integrate this into your pipeline give you continuous verification. The moment a mismatch is found, you get alerted. The best setups pair detection with auto-remediation — reconciling the cluster state back to the IaC definitions.