Home / Companies / Harness / Blog / Post Details
Content Deep Dive

Auto-Pruning Kubernetes Resources with Harness

Blog post from Harness

Post Details
Company
Date Published
Author
Tathagat Chaurasiya
Word Count
1,365
Language
English
Hacker News Points
-
Summary

Harness's Auto-Pruning feature optimizes Kubernetes deployments by automatically removing untracked resources, thus preventing clutter and ensuring smooth rollbacks. This functionality enhances deployment efficiency, reduces manual cleanup efforts, and supports various deployment strategies such as rolling, canary, and blue-green. Auto-Pruning works by comparing the resources from the last successful release with those in the current release and pruning those no longer needed. The system also handles rollbacks by storing the necessary resource information in a ConfigMap, allowing for recreation if needed. Harness further provides customizability through annotations and addresses storage and security concerns by compressing large manifests and securing customer CRDs as Kubernetes Secrets. This feature allows users to maintain clean, up-to-date configurations while leveraging advanced deployment strategies without being restricted to basic rollout strategies.