|
|
|
@ -266,10 +266,10 @@ spec:
|
|
|
|
|
{{- include "<CHARTNAME>.selectorLabels" . | nindent 6 }}
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
{{- with .Values.podAnnotations }}
|
|
|
|
|
{{- with .Values.podAnnotations }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "<CHARTNAME>.selectorLabels" . | nindent 8 }}
|
|
|
|
|
spec:
|
|
|
|
@ -360,18 +360,18 @@ spec:
|
|
|
|
|
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
|
|
|
|
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
|
|
|
|
metrics:
|
|
|
|
|
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
|
|
|
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
|
|
|
- type: Resource
|
|
|
|
|
resource:
|
|
|
|
|
name: cpu
|
|
|
|
|
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
|
|
|
- type: Resource
|
|
|
|
|
resource:
|
|
|
|
|
name: memory
|
|
|
|
|
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|