Skip to content

Commit

Permalink
feat(autoscaler): set safe-to-evict to false to disable scaledown for…
Browse files Browse the repository at this point in the history
… CSPI pods (openebs-archive#1481)

Signed-off-by: Vitta <[email protected]>
  • Loading branch information
vishnuitta authored and shubham14bajpai committed Dec 27, 2019
1 parent f74f2aa commit f88c87e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/cspc-operator/app/storagepool_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,11 @@ func getPodLabels(csp *apis.CStorPoolInstance) map[string]string {

func getPodAnnotations() map[string]string {
return map[string]string{
"openebs.io/monitoring": "pool_exporter_prometheus",
"prometheus.io/path": "/metrics",
"prometheus.io/port": "9500",
"prometheus.io/scrape": "true",
"openebs.io/monitoring": "pool_exporter_prometheus",
"prometheus.io/path": "/metrics",
"prometheus.io/port": "9500",
"prometheus.io/scrape": "true",
"cluster-autoscaler.kubernetes.io/safe-to-evict": "false",
}
}

Expand Down

0 comments on commit f88c87e

Please sign in to comment.