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 -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "SERVICE_NAME.fullname" . -}} {{- $fullName := include "project1400.fullname" . -}}
{{- $ingressPaths := .Values.ingress.paths -}} {{- $ingressPaths := .Values.ingress.paths -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
labels: labels:
app.kubernetes.io/name: {{ include "SERVICE_NAME.name" . }} app.kubernetes.io/name: {{ include "project1400.name" . }}
helm.sh/chart: {{ include "SERVICE_NAME.chart" . }} helm.sh/chart: {{ include "project1400.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations: annotations:
...@@ -26,7 +26,8 @@ metadata: ...@@ -26,7 +26,8 @@ metadata:
alb.ingress.kubernetes.io/success-codes: '200,302' alb.ingress.kubernetes.io/success-codes: '200,302'
alb.ingress.kubernetes.io/healthy-threshold-count: '2' alb.ingress.kubernetes.io/healthy-threshold-count: '2'
alb.ingress.kubernetes.io/unhealthy-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: spec:
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
...@@ -40,16 +41,12 @@ spec: ...@@ -40,16 +41,12 @@ spec:
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ . | quote }} - host: {{ .host }}
http: http:
paths: paths:
{{- range $ingressPaths }} - path: /*
- path: {{ . }}
backend: backend:
service: serviceName: {{ .serviceName }}
name: {{ $fullName }} servicePort: {{ .servicePort }}
port:
number: 80
{{- end }}
{{- end }} {{- end }}
{{- 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