Browse Source

ing

pull/82/head
brandon 4 years ago
parent
commit
4c4248f730
  1. 11
      helm-guestbook/templates/ingress.yaml

11
helm-guestbook/templates/ingress.yaml

@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "helm-guestbook.fullname" . }}
@ -13,9 +13,12 @@ spec:
- host: {{ .Values.ingress.host }}
http:
paths:
- path: {{ .Values.ingress.path }}
- pathType: Prefix
path: {{ .Values.ingress.path }}
backend:
# serviceName must match canary.stableService
serviceName: {{ template "helm-guestbook.fullname" . }}
servicePort: {{ .Values.service.port }}
service:
name: {{ template "helm-guestbook.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
Loading…
Cancel
Save