Skip to content

Commit

Permalink
Merge pull request #1447 from porter-dev/ym/app_scaled_objects_adopt
Browse files Browse the repository at this point in the history
feat: modify web/workers for keda autoscaling
  • Loading branch information
yosefmih authored Dec 10, 2024
2 parents 07786a9 + fe06f0c commit f88f924
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions applications/web/templates/hpa-blue-green.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "docker-template.fullname" $ }}-{{ $tag }}
annotations:
validations.keda.sh/hpa-ownership: "false"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down
2 changes: 2 additions & 0 deletions applications/web/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "docker-template.fullname" . }}
annotations:
validations.keda.sh/hpa-ownership: "false"
spec:
{{- if .Values.autoscaling.behavior.enabled }}
behavior:
Expand Down
2 changes: 1 addition & 1 deletion applications/web/templates/scaled-object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: {{ $fullName }}
name: {{ $fullName }}
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down
2 changes: 2 additions & 0 deletions applications/worker/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "docker-template.fullname" . }}
annotations:
validations.keda.sh/hpa-ownership: "false"
spec:
{{- if .Values.autoscaling.behavior.enabled }}
behavior:
Expand Down

0 comments on commit f88f924

Please sign in to comment.