2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2021 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
12 {{- if .Values.autoscaling.enabled }}
13 apiVersion: autoscaling/v2beta1
14 kind: HorizontalPodAutoscaler
16 name: {{ include "opendaylight.fullname" . }}
18 {{- include "opendaylight.labels" . | nindent 4 }}
23 name: {{ include "opendaylight.fullname" . }}
24 minReplicas: {{ .Values.autoscaling.minReplicas }}
25 maxReplicas: {{ .Values.autoscaling.maxReplicas }}
27 {{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
31 targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
33 {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
37 targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}