Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Helm Charts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CIT Uni Münster
WWU Kube
Helm Charts
Merge requests
!2
Update Horizontal Pod Autoscaler to v2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update Horizontal Pod Autoscaler to v2
update-autoscaler
into
main
Overview
1
Commits
1
Pipelines
0
Changes
2
Merged
Dr. Markus Blank-Burian
requested to merge
update-autoscaler
into
main
1 year ago
Overview
1
Commits
1
Pipelines
0
Changes
2
Expand
Update to autoscaling/v2, as autoscaling/v2beta2 is deprecated since kubernetes v1.23.
1
0
Merge request reports
Compare
main
version 1
d2c803e8
1 year ago
main (base)
and
latest version
latest version
633c556f
1 commit,
1 year ago
version 1
d2c803e8
1 commit,
1 year ago
2 files
+
8
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
webserver/templates/hpa.yaml
+
7
−
3
Options
{{
- if .Values.autoscaling.enabled
}}
apiVersion
:
autoscaling/v2
beta1
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
{{
include "webserver.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
}}
Loading