github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/tracing/templates/ingress.yaml (about)

     1  {{- if .Values.ingress.enabled -}}
     2  {{- $serviceName := "zipkin" -}}
     3  {{- $servicePort := .Values.service.externalPort -}}
     4  apiVersion: extensions/v1beta1
     5  kind: Ingress
     6  metadata:
     7    name: {{ template "zipkin.fullname" . }}
     8    namespace: {{ .Release.Namespace }}
     9    labels:
    10      app: {{ template "zipkin.name" . }}
    11      chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    12      release: {{ .Release.Name }}
    13      heritage: {{ .Release.Service }}
    14    annotations:
    15      {{- range $key, $value := .Values.ingress.annotations }}
    16        {{ $key }}: {{ $value | quote }}
    17      {{- end }}
    18  spec:
    19    rules:
    20      {{- range $host := .Values.ingress.hosts }}
    21      - host: {{ $host }}
    22        http:
    23          paths:
    24            - path: /
    25              backend:
    26                serviceName: {{ $serviceName }}
    27                servicePort: {{ $servicePort }}
    28      {{- end -}}
    29    {{- if .Values.ingress.tls }}
    30    tls:
    31  {{ toYaml .Values.ingress.tls | indent 4 }}
    32    {{- end -}}
    33  {{- end -}}