WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EnviDat
EnviDat-Frontend
Commits
1247885c
Commit
1247885c
authored
Nov 22, 2022
by
Sam
Browse files
ci: upgrade deprecated autoscaling/v2beta1 kubernetes api
parent
cd30d804
Changes
1
Hide whitespace changes
Inline
Side-by-side
chart/templates/hpa.yaml
View file @
1247885c
{{
- if .Values.autoscaling.enabled
}}
apiVersion
:
autoscaling/v2
beta1
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
{{
include "chart.fullname" .
}}
...
...
@@ -17,12 +17,16 @@ spec:
-
type
:
Resource
resource
:
name
:
cpu
targetAverageUtilization
:
{{
.Values.autoscaling.targetCPUUtilizationPercentage
}}
target
:
type
:
Utilization
averageUtilization
:
{{
.Values.autoscaling.targetCPUUtilizationPercentage
}}
{{
- end
}}
{{
- if .Values.autoscaling.targetMemoryUtilizationPercentage
}}
-
type
:
Resource
resource
:
name
:
memory
targetAverageUtilization
:
{{
.Values.autoscaling.targetMemoryUtilizationPercentage
}}
target
:
type
:
Utilization
averageUtilization
:
{{
.Values.autoscaling.targetMemoryUtilizationPercentage
}}
{{
- end
}}
{{
- end
}}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment