Skip to content

A controller to fix autoscaler scale down no.scale.down.node.pod.has.local.storage

License

Notifications You must be signed in to change notification settings

guyguy333/sorry-gke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sorry-gke

Currently on GKE, event-exporter and stackdriver-metadata-agent pods are preventing scaling down as they're using hostPath and not using cluster-autoscaler.kubernetes.io/safe-to-evict: "true" annotation. Indeed, no.scale.down.node.pod.has.local.storage error happens. Deployments of these pods are overwritten on every cluster upgrade so it's not a viable solution to set them manually. This controller patches Deployments to inject missing annotations to allow autoscaler a scaledown waiting a proper patch from GKE.

Build

docker build -t guyguy333/sorry-gke .

Install

kubectl apply -f deployment.yaml

About

A controller to fix autoscaler scale down no.scale.down.node.pod.has.local.storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published