-
Notifications
You must be signed in to change notification settings - Fork 93
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
Cloudflare support #1278
Cloudflare support #1278
Conversation
I proceeded a bit further with testing. Having this in external-dns logs
Found possible root cause at https://wordathemes.com/cloudflare-dns-validation-error-code-1004/#:~:text=Ensure%20Correct%20TTL%20Value,to%20the%20DNS%20validation%20limit.
Standard low TTL values that are used in k8gb setup by default are too low for cloudflare. I will try to play with TTL values. |
Alight, after adding
to Gslb spec I can see glue A records created for the zone delegation Next challenge: teach extenrnal-dns cloudflare provider to create NS records. It looks like it is disabled and we need to create PR similar to kubernetes-sigs/external-dns#2835 |
I've found the root cause for NS records not being created and fixed it in 8e9035e PR is ready for the full e2e test |
✅ Deploy Preview for k8gb-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Add Cloudflare support following the https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/cloudflare.md Switch to new CF_API_TOKEN, fix external-dns RBAC for cloudflare Enable ext dns flag for cloudflare Signed-off-by: Yury Tsarev <yury@upbound.io>
* Add custom prefix for TXT meta records for external-dns * The reason is to avoid the clash in Cloudflare during NS record creation: ``` level=error msg="failed to create record: Non-NS records with that host already exist. (81055)" action=CREATE record=test.k8gb.io ttl=120 type=NS zone=37c15d7c15808f1882bf168542d0d40b ``` Signed-off-by: Yury Tsarev <yury@upbound.io>
Signed-off-by: Yury Tsarev <yury@upbound.io>
Signed-off-by: Yury Tsarev <yury@upbound.io>
Documentation preview is available at https://deploy-preview-1278--k8gb-preview.netlify.app/docs/deploy_cloudflare, the PR is fully ready for the review |
* Release `v0.12.0` with Cloudflare(k8gb-io#1278) and GSS-TSIG support(k8gb-io#1064) * Inline maintainer list update to be aligned with https://github.com/k8gb-io/k8gb/blob/master/CODEOWNERS Signed-off-by: Yury Tsarev <yury@upbound.io>
* Release `v0.12.0` with Cloudflare(k8gb-io#1278) and GSS-TSIG support(k8gb-io#1064) * Inline maintainer list update to be aligned with https://github.com/k8gb-io/k8gb/blob/master/CODEOWNERS Signed-off-by: Yury Tsarev <yury@upbound.io>
* Release `v0.12.0` with Cloudflare(#1278) and GSS-TSIG support(#1064) * Inline maintainer list update to be aligned with https://github.com/k8gb-io/k8gb/blob/master/CODEOWNERS Signed-off-by: Yury Tsarev <yury@upbound.io>
Cloudflare support
Add Cloudflare support following the https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/cloudflare.md
Eventually fixes Cloudflare GSLB support #884 and Cloudflare EdgeDNS support #944
It is early stage PR and requires thorough end-to-end testing before the merge.
I made only very initial tests making sure that external-dns can access cloudflare API with the valid API token
How to test this PR:
Make sure that there is no newline character in the secret, otherwise the authentication will fail
k -n k8gb logs -f deploy/external-dns
- you should see no authentication errorsThat is the baseline.
Now we need to start creating Gslb objects and observe the actual DNS record population on Cloudflare side.
This part of the testing is not done yet, and we will need community help here.