github.com/GoogleContainerTools/skaffold/v2@v2.13.2/examples/helm-deployment-dependencies/skaffold-helm/charts/subchart/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $serviceName := include "subchart.fullname" . -}} 3 {{- $servicePort := .Values.service.externalPort -}} 4 apiVersion: networking.k8s.io/v1 5 kind: Ingress 6 metadata: 7 name: {{ template "subchart.fullname" . }} 8 labels: 9 app: {{ template "subchart.name" . }} 10 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 11 release: {{ .Release.Name }} 12 heritage: {{ .Release.Service }} 13 annotations: 14 {{- range $key, $value := .Values.ingress.annotations }} 15 {{ $key }}: {{ $value | quote }} 16 {{- end }} 17 spec: 18 rules: 19 {{- range $host := .Values.ingress.hosts }} 20 - host: {{ $host }} 21 http: 22 paths: 23 - path: / 24 pathType: ImplementationSpecific 25 backend: 26 service: 27 name: {{ $serviceName }} 28 port: 29 number: {{ $servicePort }} 30 {{- end -}} 31 {{- if .Values.ingress.tls }} 32 tls: 33 {{ toYaml .Values.ingress.tls | indent 4 }} 34 {{- end -}} 35 {{- end -}}