The ingress rules were broken, and production traffic was bleeding into the wrong paths. You reached for the fastest way to reset ingress resources before the chaos could spread.
git reset is usually about source code, but when Kubernetes manifests live in your repo, it becomes the quickest way to roll ingress resources back to a known good state. A bad ingress configuration can expose services, misroute requests, or take down endpoints. A proper reset is not about trial and error. It’s about restoring clean, tested manifests and pushing them through your deployment pipeline without delay.
To reset ingress resources with git, start by checking out the commit hash for the version you trust:
git checkout <commit-hash> -- path/to/ingress.yaml
This pulls the stable ingress manifest from version control while leaving other files untouched. If the ingress file lives with other Kubernetes YAML files, target the specific file to avoid overwriting unrelated changes.
Then stage and commit it: