Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
60aa4fd3
Unverified
Commit
60aa4fd3
authored
1 year ago
by
NIKHIL VARMA M
Committed by
GitHub
1 year ago
Browse files
Options
Download
Patches
Plain Diff
Update hpa.yaml
parent
4777f548
release-5.1.0-upsmf-prod
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kubernetes/helm_charts/core/search/templates/hpa.yaml
+10
-4
kubernetes/helm_charts/core/search/templates/hpa.yaml
with
10 additions
and
4 deletions
+10
-4
kubernetes/helm_charts/core/search/templates/hpa.yaml
+
10
−
4
View file @
60aa4fd3
{{
- if .Values.autoscaling.enabled
}}
apiVersion
:
autoscaling/v2
beta1
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
{{
.Chart.Name
}}
...
...
@@ -16,12 +16,18 @@ spec:
-
type
:
Resource
resource
:
name
:
cpu
targetAverageUtilization
:
{{
.Values.autoscaling.targetCPUUtilizationPercentage
}}
target
:
type
:
Utilization
averageUtilization
:
{{
.Values.autoscaling.targetCPUUtilizationPercentage
}}
#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
}}
#AverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets