blob: 8be30a2c4aa1259c7c082e61683baa5f093faf66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
apiVersion: "v1"
kind: "Route"
metadata:
name: "{{obj_name}}"
{% if labels is defined%}
labels:
{% for key, value in labels.iteritems() %}
{{key}}: {{value}}
{% endfor %}
{% endif %}
spec:
host: {{ route_host }}
tls:
caCertificate: |
{% for line in tls_ca_cert.split('\n') %}
{{ line }}
{% endfor %}
destinationCACertificate: |
{% for line in tls_dest_ca_cert.split('\n') %}
{{ line }}
{% endfor %}
termination: reencrypt
to:
kind: Service
name: {{ service_name }}
|