Skip to content
Snippets Groups Projects
Commit 9ae2140a authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'master' into more-worker-celery

parents 6b34a01b cfab04cb
No related branches found
No related tags found
1 merge request!67Draft: HPA for celery
---
{{- if .Values.celery.autoScaling}}
apiVersion: v1
kind: Service
metadata:
......@@ -16,44 +14,6 @@ spec:
{{- include "chart.labels" . | nindent 4 }}
app: celery-worker
---
#apiVersion: autoscaling/v1
#kind: HorizontalPodAutoscaler
#metadata:
# name: {{ printf "%s-%s" .Release.Name "hpa" }}
#spec:
# scaleTargetRef:
# apiVersion: apps/v1
# kind: StatefulSet
# name: {{ printf "%s-%s" .Release.Name "celery" }}
# minReplicas: 1
# maxReplicas: 3
# targetCPUUtilizationPercentage: 50
---
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ printf "%s-%s" .Release.Name "hpa" }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: StatefulSet
name: {{ printf "%s-%s" .Release.Name "celery" }}
minReplicas: 1
maxReplicas: 3
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
behavior:
scaleDown:
stabilizationWindowSeconds: 120
scaleUp:
stabilizationWindowSeconds: 10
---
{{- end }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment