diff --git a/templates/_hpa.yaml b/templates/_hpa.yaml index f347532..0ff4230 100644 --- a/templates/_hpa.yaml +++ b/templates/_hpa.yaml @@ -16,20 +16,20 @@ spec: maxReplicas: {{ $autoscaling.maxReplicas }} metrics: {{- with $autoscaling.cpuUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ . }} + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ . }} {{- end }} {{- with $autoscaling.memoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ . }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ . }} {{- end }} {{- end }} diff --git a/templates/_ingress.yaml b/templates/_ingress.yaml index d16fa9b..f55a8df 100644 --- a/templates/_ingress.yaml +++ b/templates/_ingress.yaml @@ -26,24 +26,24 @@ spec: {{- if $ingress.tls }} tls: {{- range $ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range $ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ . }} - backend: - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} - {{- end }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + backend: + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} {{- end }} {{- end }} diff --git a/templates/_pod.tpl b/templates/_pod.tpl index 502690c..5fb3d15 100644 --- a/templates/_pod.tpl +++ b/templates/_pod.tpl @@ -20,7 +20,7 @@ spec: securityContext: {{- toYaml $pod.podSecurityContext | nindent 4 }} containers: - - {{- include "common.container" (list $top $pod) | nindent 6 }} + - {{- include "common.container" (list $top $pod) | nindent 4 }} {{- with $pod.nodeSelector }} nodeSelector: {{- toYaml . | nindent 4 }} diff --git a/templates/_service.yaml b/templates/_service.yaml index 91f5436..b82f18a 100644 --- a/templates/_service.yaml +++ b/templates/_service.yaml @@ -10,10 +10,10 @@ metadata: spec: type: {{ $service.type }} ports: - - port: {{ $service.port }} - targetPort: http - protocol: TCP - name: http + - port: {{ $service.port }} + targetPort: http + protocol: TCP + name: http selector: {{- include "common.selectorLabels" $top | nindent 4 }} {{- end }}