You've already forked athens-proxy-charts
							
							
		
			
				
	
	
		
			25 lines
		
	
	
		
			721 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			721 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
{{- if .Values.hpa.enabled -}}
 | 
						|
---
 | 
						|
apiVersion: autoscaling/v2
 | 
						|
kind: HorizontalPodAutoscaler
 | 
						|
metadata:
 | 
						|
  {{- with (include "athens-proxy.hpa.annotations" . | fromYaml) }}
 | 
						|
  annotations:
 | 
						|
    {{- tpl (toYaml .) $ | nindent 4 }}
 | 
						|
  {{- end }}
 | 
						|
  {{- with (include "athens-proxy.hpa.labels" . | fromYaml) }}
 | 
						|
  labels:
 | 
						|
    {{- toYaml . | nindent 4 }}
 | 
						|
  {{- end }}
 | 
						|
  name: {{ include "athens-proxy.fullname" . }}
 | 
						|
  namespace: {{ .Release.Namespace }}
 | 
						|
spec:
 | 
						|
  metrics:
 | 
						|
  {{- toYaml .Values.hpa.metrics | nindent 2 }}
 | 
						|
  maxReplicas: {{ .Values.hpa.maxReplicas }}
 | 
						|
  minReplicas: {{ .Values.hpa.minReplicas }}
 | 
						|
  scaleTargetRef:
 | 
						|
    apiVersion: apps/v1
 | 
						|
    kind: Deployment
 | 
						|
    name: {{ include "athens-proxy.fullname" . }}
 | 
						|
{{- end -}} |