helm: add appgw to ingress
This commit is contained in:
parent
6344b1aafb
commit
765c5633df
|
@ -32,7 +32,16 @@ spec:
|
||||||
paths:
|
paths:
|
||||||
- path: {{ $ingressPath }}
|
- path: {{ $ingressPath }}
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}-web
|
||||||
|
servicePort: http
|
||||||
|
{{- end }}
|
||||||
|
{{- range .Values.ingress.app_gw_hosts }}}
|
||||||
|
- host: {{ . | quote }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: {{ $ingressPath }}
|
||||||
|
backend:
|
||||||
|
serviceName: {{ $fullName }}-appgw
|
||||||
servicePort: http
|
servicePort: http
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "passbook.fullname" . }}
|
name: {{ include "passbook.fullname" . }}-web
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "passbook.name" . }}
|
app.kubernetes.io/name: {{ include "passbook.name" . }}
|
||||||
helm.sh/chart: {{ include "passbook.chart" . }}
|
helm.sh/chart: {{ include "passbook.chart" . }}
|
||||||
|
|
|
@ -37,6 +37,8 @@ ingress:
|
||||||
path: /
|
path: /
|
||||||
hosts:
|
hosts:
|
||||||
- passbook.k8s.local
|
- passbook.k8s.local
|
||||||
|
app_gw_hosts:
|
||||||
|
- '*.passbook.k8s.local'
|
||||||
defaultHost: passbook.k8s.local
|
defaultHost: passbook.k8s.local
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
|
|
Reference in a new issue