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

Update autoscaling API version to v2

parent b06e2b57
No related branches found
No related tags found
No related merge requests found
Pipeline #122293 passed
Pipeline: shiny-k8s-example

#122294

    ......@@ -15,7 +15,7 @@ type: application
    # This is the chart version. This version number should be incremented each time you make changes
    # to the chart and its templates, including the app version.
    # Versions are expected to follow Semantic Versioning (https://semver.org/)
    version: 0.6.1
    version: 0.6.2
    # This is the version number of the application being deployed. This version number should be
    # incremented each time you make changes to the application. Versions are not expected to
    ......
    {{- if .Values.autoscaling.enabled }}
    apiVersion: autoscaling/v2beta1
    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 }}
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment