Right now if you have a sidecar like istio's (istio/istio#19395) with an EmptyDir and the main service without it; the pod is excluded
A work around is to set the annotation
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
but that applies at the whole pod level and one would need to duplicate the logic checking for volumes to decide true/false
Can we instead have an annotation like
cluster-autoscaler.kubernetes.io/ignore-container: istio-proxy
(or maybe a pattern, ignored-containers: pattern)
That would skip said container(s) [volumes] for the determination of whether a pod is evictable or not ?
Right now if you have a sidecar like istio's (istio/istio#19395) with an EmptyDir and the main service without it; the pod is excluded
A work around is to set the annotation
but that applies at the whole pod level and one would need to duplicate the logic checking for volumes to decide true/false
Can we instead have an annotation like
(or maybe a pattern,
ignored-containers: pattern)That would skip said container(s) [volumes] for the determination of whether a pod is evictable or not ?