Commit c2e8f23a authored by skahate's avatar skahate

Update ingress.yaml

parent 0d8b7ae6
Pipeline #7032 failed with stages
in 27 seconds
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "SERVICE_NAME.fullname" . -}}
{{- $fullName := include "project1400.fullname" . -}}
{{- $ingressPaths := .Values.ingress.paths -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
app.kubernetes.io/name: {{ include "SERVICE_NAME.name" . }}
helm.sh/chart: {{ include "SERVICE_NAME.chart" . }}
app.kubernetes.io/name: {{ include "project1400.name" . }}
helm.sh/chart: {{ include "project1400.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations:
......@@ -26,7 +26,8 @@ metadata:
alb.ingress.kubernetes.io/success-codes: '200,302'
alb.ingress.kubernetes.io/healthy-threshold-count: '2'
alb.ingress.kubernetes.io/unhealthy-threshold-count: '2'
alb.ingress.kubernetes.io/load-balancer-name: {{ $fullName }}
alb.ingress.kubernetes.io/load-balancer-name: {{ .Values.ingress.loadbalancername }}
spec:
{{- if .Values.ingress.tls }}
tls:
......@@ -40,16 +41,12 @@ spec:
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . | quote }}
- host: {{ .host }}
http:
paths:
{{- range $ingressPaths }}
- path: {{ . }}
- path: /*
backend:
service:
name: {{ $fullName }}
port:
number: 80
{{- end }}
serviceName: {{ .serviceName }}
servicePort: {{ .servicePort }}
{{- end }}
{{- end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment