You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
729 B
22 lines
729 B
{{- if .Values.ingress.enabled -}}
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ template "helm-guestbook.fullname" . }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
- http:
|
|
paths:
|
|
- path: /*
|
|
backend:
|
|
# serviceName must match either: canary.trafficRouting.alb.rootService (if specified),
|
|
# or canary.stableService (if rootService is omitted)
|
|
serviceName: root-service
|
|
# servicePort must be the value: use-annotation
|
|
# This instructs AWS Load Balancer Controller to look to annotations on how to direct traffic
|
|
servicePort: use-annotation
|
|
{{- end }}
|