'Versioned Apply' (
vapply) is a kubectl plugin that extends
with delete functionality.
vapply labels all applied resources with a
vapply-version. After applying it removes all resources in the group not at
the current version.
sudo cp vapply.sh /usr/local/bin/kubectl-vapply sudo chmod +x /usr/local/bin/kubectl-vapply
kubectl vapply NAMESPACE GROUP_NAME -f manifests.yaml
--pruneisn't really ready for this yet.
- Helm has this functionality but I don't have Helm
- Flux doesn't seem to have this functionality.