Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 656 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 656 Bytes

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