5 ms·
> We still have one unsolved issue with this deployment strategy: how to clean up the old deployments when they’re no longer serving (much) traffic. Could prob
by _asummers 9y ago
> We still have one unsolved issue with this deployment strategy: how to clean up the old deployments when they’re no longer serving (much) traffic.
Could probably solve this with a readiness probe / health check of sorts that is smart enough to know what low usage means.
- bdimcheff 9y agoYeah I think if restartPolicy were changeable at runtime, we could simply have the pods exit once their connections are drained enough. If we were to exit using the current strategy, they'd just be restarted by kube.
- SEJeff 9y agoOr a horizontal pod autoscalar that can scale down to 0 replicas perhaps?