HPA to scale Deployment based on the custom metrics is now available according to release note and tut: https://cloud.google.com/kubernetes-engine/docs/tutorials/custom-metrics-autoscaling But still I couldn't figure out way to scale with metric like http_requests. Any suggestion? Thanks.
On Monday, January 29, 2018 at 10:31:14 PM UTC+5:45, Beata Skiba wrote: > > This should be available on alpha clusters starting from 1.9.2 release. > > On Saturday, January 27, 2018 at 10:45:55 AM UTC+1, parsi...@gmail.com > wrote: >> >> I tried to use this API today, it looks like >> `--horizontal-pod-autoscaler-use-rest-clients` is set to false because I'm >> getting the following error: `object metrics are not yet supported`. It >> means that I fall into legacy code here: >> >> >> https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/podautoscaler/metrics/legacy_metrics_client.go#L176 >> >> and REST interface is not used. >> >> If I use "Pods" instead of "Objects" it starts to work, but it is not >> what I'm looking for. >> >> My question is: >> How to set `--horizontal-pod-autoscaler-use-rest-clients=true` on GKE? >> >> -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.