mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 01:26:59 +02:00
added instructions for govcloud
This commit is contained in:
parent
2b213829bb
commit
8eaef452e7
@ -414,6 +414,39 @@ You can configure Route53 to associate DNS records with healthchecks for automat
|
||||
|
||||
Note: ExternalDNS does not support creating healthchecks, and assumes that `<health-check-id>` already exists.
|
||||
|
||||
## Govcloud caveats
|
||||
|
||||
Due to the special nature with how Route53 runs in Govcloud, there are a few tweaks in the deployments settings that needs to be applied.
|
||||
|
||||
* An Environment variable with name of AWS_REGION set to either us-gov-west-1 or us-gov-east-1 is required. Otherwise it tries to lookup a region that does not exist in govcloud and it errors out.
|
||||
|
||||
```yaml
|
||||
env:
|
||||
- name: AWS_REGION
|
||||
value: us-gov-west-1
|
||||
```
|
||||
|
||||
* Route 53 in Govcloud does not allow aliases. Therefore, container args must be set so that it uses CNAMES and a txt-prefix must be set to something. Otherwise, it will try to create a TXT record with the same value than the CNAME itself, which is not allowed.
|
||||
|
||||
```yaml
|
||||
args:
|
||||
- --aws-prefer-cname
|
||||
- --txt-prefix={YOUR_PREFIX}
|
||||
```
|
||||
|
||||
* Route 53 in Govcloud does not support public zones. There are also no cross account IAM whatsoever between Govcloud and Commerical AWS accounts. If services and ingresses need to make Route 53 entries to an public zone in a commerical account, you will have set env variables of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY with a key and secret to the commerical account that has the sufficient rights.
|
||||
|
||||
```yaml
|
||||
env:
|
||||
- name: AWS_ACCESS_KEY_ID
|
||||
value: XXXXXXXXX
|
||||
- name: AWS_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {YOUR_SECRET_NAME}
|
||||
key: {YOUR_SECRET_KEY}
|
||||
```
|
||||
|
||||
## Clean up
|
||||
|
||||
Make sure to delete all Service objects before terminating the cluster so all load balancers get cleaned up correctly.
|
||||
|
Loading…
Reference in New Issue
Block a user