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