External-dns: Route53 Default Location

Created on 22 Apr 2020  路  1Comment  路  Source: kubernetes-sigs/external-dns

What happened:
As per AWS Documentation:

You can create a default record that handles both queries from IP addresses that aren't mapped to any location and queries that come from locations that you haven't created geolocation records for.

I'm trying to create that Default record with an annotation but looks like there is no country code for that Default location in aws. In aws the code for the Default location is "*" but that doesn't work in the annotation.

What you expected to happen:
Set the following annotation: external-dns.alpha.kubernetes.io/aws-geolocation-continent-code: Default
Or
external-dns.alpha.kubernetes.io/aws-geolocation-continent-code: "*"
And have the record use the Default location in AWS

How to reproduce it (as minimally and precisely as possible):
Set the following annotation: external-dns.alpha.kubernetes.io/aws-geolocation-continent-code: Default
Or
external-dns.alpha.kubernetes.io/aws-geolocation-continent-code: "*"
In an ingress or service

level=error msg="InvalidInput: Invalid XML ; cvc-length-valid: Value 'Default' with length = '7' is not facet-valid with respect to length '2' for type 'ContinentCode'.\n\tstatus code: 400, request id: a10c405b-c081-40ef-aa13-4c579a7dde03"

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): v0.7.1
  • DNS provider: route53
kinbug

Most helpful comment

Figured out that there is actually not a default location for continent-code, that one only supports the two letter continent-codes defined in the docs.

The annotation i needed to use was
external-dns.alpha.kubernetes.io/aws-geolocation-country-code: "*"

>All comments

Figured out that there is actually not a default location for continent-code, that one only supports the two letter continent-codes defined in the docs.

The annotation i needed to use was
external-dns.alpha.kubernetes.io/aws-geolocation-country-code: "*"

Was this page helpful?
0 / 5 - 0 ratings