-
Notifications
You must be signed in to change notification settings - Fork 66
/
42-entry-routing-policies-aws-route53.yaml
190 lines (190 loc) · 6.49 KB
/
42-entry-routing-policies-aws-route53.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-weighted
namespace: default
spec:
dnsName: "my.service.example.com"
ttl: 120
targets:
- instance-a.service.example.com
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS
routingPolicy:
type: weighted
setIdentifier: instance-a
parameters:
weight: "90"
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-geolocation-default
namespace: default
spec:
dnsName: "my.second-service.example.com"
ttl: 120
targets:
- instance1.second-service.example.com
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS
routingPolicy:
type: geolocation # AWS Route 53 specific example
setIdentifier: default
parameters:
location: Default # default location covers geographic locations that you haven't created records for
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-geolocation-europe
namespace: default
spec:
dnsName: "my.second-service.example.com"
ttl: 120
targets:
- instance-eu.second-service.example.com
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS
routingPolicy:
type: geolocation # AWS Route 53 specific example
setIdentifier: eu
parameters:
location: "Europe" # either continent, country or subdivision name (only allowed for countries United States or Ukraine), possible names see docs/aws-route53/README.md
#location: "continent=EU" # alternatively, use continent or country code as described here: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values-geo.html#rrsets-values-geo-location
#location: "country=FR"
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-latency-eu-west-1
namespace: default
spec:
dnsName: "my.third-service.example.com"
ttl: 120
targets:
- instance1.third-service.example.com
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS
routingPolicy:
type: latency # only supported for AWS Route 53
setIdentifier: eu
parameters:
region: "eu-west-1" # AWS region name
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-latency-us-east-1
namespace: default
spec:
dnsName: "my.third-service.example.com"
ttl: 120
targets:
- instance2.third-service.example.com
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS
routingPolicy:
type: latency # only supported for AWS Route 53
setIdentifier: us
parameters:
region: "us-east-1" # AWS region name
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-ip-based-default
namespace: default
spec:
dnsName: "my.fourth-service.example.com"
ttl: 120
targets:
- instance1.fourth-service.example.com
routingPolicy:
type: ip-based # only supported for AWS Route 53
setIdentifier: default
parameters:
collection: "my-collection" # CIDR collection must be already existing
location: "*" # default
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-ip-based-loc1
namespace: default
spec:
dnsName: "my.fourth-service.example.com"
ttl: 120
targets:
- instance2.fourth-service.example.com
routingPolicy:
type: ip-based # only supported for AWS Route 53
setIdentifier: loc1
parameters:
collection: "my-collection" # CIDR collection must already be existing
location: "my-location1" # location name must already be existing
#healthCheckID: 66666666-1111-4444-aaaa-25810ea11111 # optional
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-failover-primary
namespace: default
spec:
dnsName: "my.fiveth-service.example.com"
ttl: 120
targets:
- instance1.fiveth-service.example.com
routingPolicy:
type: failover # only supported for AWS Route 53
setIdentifier: instance1
parameters:
failoverRecordType: primary
healthCheckID: 66666666-1111-4444-aaaa-25810ea11111
# disableEvaluateTargetHealth: "true" # only used if target is AWS ELB (target health is enabled by default)
---
apiVersion: dns.gardener.cloud/v1alpha1
kind: DNSEntry
metadata:
annotations:
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line
#dns.gardener.cloud/class: garden
name: aws-failover-secondary
namespace: default
spec:
dnsName: "my.fiveth-service.example.com"
ttl: 120
targets:
- instance2.fiveth-service.example.com
routingPolicy:
type: failover # only supported for AWS Route 53
setIdentifier: instance2
parameters:
failoverRecordType: secondary
healthCheckID: 66666666-1111-5555-bbbb-25810ea22222
# disableEvaluateTargetHealth: "true" # only used if target is AWS ELB (target health is enabled by default)