website icon indicating copy to clipboard operation
website copied to clipboard

StatefulSet can be autoscaled by HPA policy

Open gyliu513 opened this issue 9 years ago • 9 comments

This is a...

  • [ ] Feature Request
  • [X] Bug Report

Problem: In https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ , we are claiming that only RC, RS and Deployment can be autoscaled, we should also mention that the StatefulSet can be also autoscaled by HPA policy.

Proposed Solution:

Page to Update: http://kubernetes.io/...

gyliu513 avatar Jul 07 '17 08:07 gyliu513

Related to https://github.com/kubernetes/kubernetes/issues/44033 https://github.com/kubernetes-incubator/cluster-proportional-autoscaler/issues/29

gyliu513 avatar Jul 07 '17 10:07 gyliu513

I've actually not been able to get HPA working in a StatefulSet. apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: {{ .Values.service.name }} namespace: default spec: maxReplicas: 12 minReplicas: 3 scaleTargetRef: apiVersion: extensions/v1beta1 kind: StatefulSet name: {{ .Values.service.name }} targetCPUUtilizationPercentage: 30

chezbut avatar Jul 28 '17 16:07 chezbut

Yes, this is not implemented yet, close this one for now.

gyliu513 avatar Jul 28 '17 16:07 gyliu513

Are there any plans for adding the support for this?

iselind avatar Jan 16 '18 15:01 iselind

Bumping this but I believe it's scheduled for 1.9?

jpza avatar Jan 29 '18 17:01 jpza

Hey, any update for this? 👍

karan-kapoor90 avatar Feb 24 '18 00:02 karan-kapoor90

Bump

jpza avatar Mar 06 '18 21:03 jpza

+1 Need this feature badly

funlake avatar Mar 26 '18 03:03 funlake

+1

Need this to run a pool of independent blockchain nodes

tanujs-tech avatar Apr 06 '18 12:04 tanujs-tech