Workflow: Cluster Apply¶
Day-to-day workflow for deploying changes to a running cluster.
Steps¶
1. Make changes locally¶
Edit values, templates, or chart versions in the charts-repository.
2. Validate locally¶
hydra local template '<cluster>.<app>'
hydra local test refs '<cluster>.**'
hydra local review '<cluster>.<app>'
3. Check the diff¶
Review the output. Expect only your intended changes.
4. Apply¶
5. Verify¶
Handling Immutable Fields¶
Some Kubernetes fields cannot be patched (e.g., Service clusterIP, Job selector). If the diff shows changes to immutable fields:
Warning:
--replacedeletes and recreates the affected resource, causing downtime.