-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AWS_INSTANCE_IPV6 support to the AWS-SD provider #4721
Add AWS_INSTANCE_IPV6 support to the AWS-SD provider #4721
Conversation
/ok-to-test |
@mloiseleur I took a brief look, but couldn't find a good place for documenting specific providers. I could work on extending the tutorial for this provider to have an IPv6 example? https://kubernetes-sigs.github.io/external-dns/v0.14.2/tutorials/aws-sd/ or if there was a different place you had in mind? |
Since it's an update to the aws sd provider, yes, it make sense to me. |
code lgtm from my side |
d0b0767
to
92b2677
Compare
@mjlshen would you please extend the aws sd tutorial with this information ? |
Yes, sorry, I am trying, but struggling to reproduce this issue exactly. Will do once I figure it out. |
Signed-off-by: Michael Shen <[email protected]>
92b2677
to
c914ab7
Compare
@mloiseleur Ok I finally figured out a way to create AAAA records with the AWS-SD provider. The main issue I ran into was the lack of dualstack load balancer support in the AWS-SD provider when compared to the AWS provider. Currently, whenever a load balancer is detected, the AWS-SD provider only creates an A record: external-dns/provider/awssd/aws_sd.go Lines 488 to 493 in b834fef
i.e. the AWS-SD doesn't have the equivalent of #1079 yet from the AWS provider. I chose to document this gap for now instead of attempting to also fix this in the PR, though I will also file an issue to track this. |
docs/tutorials/aws-sd.md
Outdated
> The AWS-SD provider does not currently support dualstack loadbalancers and will only create A records for these at this time. See the AWS provider and the [AWS Load Balancer Controller Tutorial](./aws-load-balancer-controller.md) for dualstack loadbalancer support. | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: nginx | ||
annotations: | ||
external-dns.alpha.kubernetes.io/hostname: nginx.external-dns-test.my-org.com | ||
external-dns.alpha.kubernetes.io/ttl: "60" | ||
spec: | ||
ipFamilies: | ||
- "IPv6" | ||
type: NodePort | ||
ports: | ||
- port: 80 | ||
name: http | ||
targetPort: 80 | ||
selector: | ||
app: nginx | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> The AWS-SD provider does not currently support dualstack loadbalancers and will only create A records for these at this time. See the AWS provider and the [AWS Load Balancer Controller Tutorial](./aws-load-balancer-controller.md) for dualstack loadbalancer support. | |
```yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx | |
annotations: | |
external-dns.alpha.kubernetes.io/hostname: nginx.external-dns-test.my-org.com | |
external-dns.alpha.kubernetes.io/ttl: "60" | |
spec: | |
ipFamilies: | |
- "IPv6" | |
type: NodePort | |
ports: | |
- port: 80 | |
name: http | |
targetPort: 80 | |
selector: | |
app: nginx | |
``` | |
```yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx | |
annotations: | |
external-dns.alpha.kubernetes.io/hostname: nginx.external-dns-test.my-org.com | |
external-dns.alpha.kubernetes.io/ttl: "60" | |
spec: | |
ipFamilies: | |
- "IPv6" | |
type: NodePort | |
ports: | |
- port: 80 | |
name: http | |
targetPort: 80 | |
selector: | |
app: nginx | |
``` | |
:information_source: The AWS-SD provider does not currently support dualstack loadbalancers and will only create A records for these at this time. See the AWS provider and the [AWS Load Balancer Controller Tutorial](./aws-load-balancer-controller.md) for dualstack loadbalancer support. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks, updated! I also changed loadbalancer
--> load balancer
because I realized that it should be two words :D
I have tiny suggestion about documentation order and we are good to go. |
c914ab7
to
7232fa1
Compare
Signed-off-by: Michael Shen <[email protected]>
7232fa1
to
0b4c0e8
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mloiseleur The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
As reported in the issue, the AWS-SD provider did not support the
AWS_INSTANCE_IPV6
attribute type: https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.htmlFixes #4713
Checklist