mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
* [bitnami/nginx-intel] Add NGINX intel Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com> Signed-off-by: Alejandro Moreno <amorenoc@vmware.com> * Removes downloaded dependency Signed-off-by: Rafael Rios Saavedra <rafael.rios.saavedra@gmail.com> Signed-off-by: Alejandro Moreno <amorenoc@vmware.com> * Fixes Signed-off-by: Alejandro Moreno <amorenoc@vmware.com> * Update description Signed-off-by: Alejandro Moreno <amorenoc@vmware.com> * Update Chart.lock Signed-off-by: Alejandro Moreno <amorenoc@vmware.com> * Add app-name metadata Signed-off-by: Alejandro Moreno <amorenoc@vmware.com> * [bitnami/nginx-intel] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Rafael Rios Saavedra <rafael.rios.saavedra@gmail.com> Co-authored-by: Alejandro Moreno <amorenoc@vmware.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
{{- if .Values.autoscaling.enabled }}
|
|
apiVersion: autoscaling/v2beta1
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
|
|
kind: Deployment
|
|
name: {{ template "common.names.fullname" . }}
|
|
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
|
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
|
metrics:
|
|
{{- if .Values.autoscaling.targetCPU }}
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
|
|
{{- end }}
|
|
{{- if .Values.autoscaling.targetMemory }}
|
|
- type: Resource
|
|
resource:
|
|
name: memory
|
|
targetAverageUtilization: {{ .Values.autoscaling.targetMemory }}
|
|
{{- end }}
|
|
{{- end }}
|