summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/templates/route.j2
blob: a720c49594c8073a8d2d3eca61f31ea717bbf8db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
apiVersion: v1
kind: Route
metadata:
  name: {{ name }}
{% if labels is defined and labels %}
  labels:
{% for k, v in labels.iteritems() %}
    {{ k }}: {{ v }}
{% endfor %}
{% endif %}
spec:
  host: {{ host }}
  to:
    kind: {{ to.kind }}
    name: {{ to.name }}
{% if tls is defined %}
  tls:
    termination: {{ tls.termination }}
{% if tls.termination == 'reencrypt' %}
    destinationCACertificate: |
{{ tls.destination_ca_certificate|indent(6, true) }}
{% endif %}
{% endif %}