forked from redhat-cop/ocp4-helpernode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zonefile.j2
54 lines (54 loc) · 1.51 KB
/
zonefile.j2
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$TTL 1W
@ IN SOA ns1.{{ dns.clusterid }}.{{ dns.domain | lower }}. root (
{{ serialnumber }} ; serial
3H ; refresh (3 hours)
30M ; retry (30 minutes)
2W ; expiry (2 weeks)
1W ) ; minimum (1 week)
IN NS ns1.{{ dns.clusterid }}.{{ dns.domain | lower }}.
IN MX 10 smtp.{{ dns.clusterid }}.{{ dns.domain | lower }}.
;
;
ns1 IN A {{ helper.ipaddr }}
smtp IN A {{ helper.ipaddr }}
;
{{ helper.name | lower }} IN A {{ helper.ipaddr }}
;
; The api points to the IP of your load balancer
api IN A {{ helper.ipaddr }}
api-int IN A {{ helper.ipaddr }}
;
; The wildcard also points to the load balancer
*.apps IN A {{ helper.ipaddr }}
;
; Create entry for the bootstrap host
{{ bootstrap.name | lower }} IN A {{ bootstrap.ipaddr }}
;
; Create entries for the master hosts
{% for m in masters %}
{{ m.name | lower }} IN A {{ m.ipaddr }}
{% endfor %}
;
; Create entries for the worker hosts
{% for w in workers %}
{{ w.name | lower }} IN A {{ w.ipaddr }}
{% endfor %}
;
; The ETCd cluster lives on the masters...so point these to the IP of the masters
{% for m in masters %}
etcd-{{ loop.index0 }} IN A {{ m.ipaddr }}
{% endfor %}
;
{% if other is defined %}
; Create entries for the other hosts
{% for o in other %}
{{ o.name }} IN A {{ o.ipaddr }}
{% endfor %}
;
{% endif %}
; The SRV records are IMPORTANT....make sure you get these right...note the trailing dot at the end...
{% for m in masters %}
_etcd-server-ssl._tcp IN SRV 0 10 2380 etcd-{{ loop.index0 }}.{{ dns.clusterid }}.{{ dns.domain | lower }}.
{% endfor %}
;
;EOF