-
Notifications
You must be signed in to change notification settings - Fork 16
add horizontal pod auto scale at 80% cpu usage #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the service should be able to safely scale up and down before introducing an autoscaler. Make sure the application can handle terminations without causing errors. (like if the pod is killed while processing an image, it won't be killed until its done) https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
| @@ -0,0 +1,17 @@ | |||
| apiVersion: autoscaling/v1 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not everyone may want to use an HPA, so wrap all of this in an if?
vizzy/templates/scaling.yaml
Outdated
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| name: {{ .Chart.Name }} | ||
| targetCPUUtilizationPercentage: 80 No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make configurable
| maxReplicas: {{ .Values.maxReplica }} | ||
| minReplicas: {{ .Values.replicaCount }} | ||
| scaleTargetRef: | ||
| apiVersion: apps/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the apiVersion in deployment.yaml
…, update deployment apiVersion
No description provided.