-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
WIP: Add new external-dns addon for exposing Ingress, LoadBalancer & Istio external IPs to the host #13333
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Welcome @denniseffing! |
Hi @denniseffing. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: denniseffing The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
5565218
to
9eadbd5
Compare
I am currently ironing out the details regarding signing the CLA as codecentric employee. I expect that I can finally sign the CLA sometime next week. |
/check-cla |
The addon deploys externaldns and bind. externaldns configures DNS records in bind using RFC2136 based on Ingresses, Services, Istio Gateways and Istio VirtualServices. bind is exposed on the host network so that the host can use bind as a DNS server to resolve the hostnames. Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>
9eadbd5
to
e382f0c
Compare
e382f0c
to
699b375
Compare
DNS zone can be configured using `minikube addon configure external-dns`. Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>
Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>
Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>
ExternalDNS pod goes into a CrashLoopBackoff when ExternalDNS is configured to watch Istio resources and Istio CRDs are not installed. To work around this issue, Istio CRD support is now configurable and disabled by default. Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>
699b375
to
f4fbf14
Compare
I rebased the branch, signed the CLA and fixed another bug with the custom DNS zone configuration. I still need some help regarding the CoreDNS configuration of the k8s cluster itself. Is modifying the CoreDNS ConfigMap and restarting the pod even possible with minikube addons? A review and feedback by admins or someone else would be much appreciated! @RA489 Maybe you could help? 🙂 |
@denniseffing: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi!
I created a new and refined version iterated over the initial draft in #9000. Special thanks to @segevfiner for figuring out the biggest issues! Made my PR a whole lot easier.
This addon deploys a bind named DNS server and an ExternalDNS instance. ExternalDNS observes
Ingress
,Service
, IstioGateway
andVirtualService
resources and configures the DNS server accordingly. The DNS zone can be configured usingminikube addons configure external-dns
and is set todemo.
by default. This means that by default, you can only configure hostnames ending in.demo
.The DNS server is exposed to the host network and shall be used as DNS resolver for the host machine.
This way, ingresses and services of type
LoadBalancer
are resolvable by the host.I also added a handbook page for the addon based on the handbook page of the ingress-dns addon. Since both addons utilize DNS servers, the instructions are quite the same and shamelessly reused, if still applicable. Please let me know if that is okay.
I included examples as well. Please let me know if you run into any issues. Thanks!
How to test with provided example
Add the
minikube ip
as a DNS server as shown here: https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/TODO
--publish-status-address=localhost
. We should consider removing the argument from the ingress addon. I'm not quite sure why the argument is needed in the first place, everything works perfectly without the argumentCrashLoopBackoff
when the Istio CRDs are not installed on the cluster. This seems to be an issue with ExternalDNS itself, see The external-dns pod crashes when no CRD objects are present for a particular source kubernetes-sigs/external-dns#2490. I guess I will work around this issue by introducing a configurable setting for Istio support. This setting can be removed in the future when ExternalDNS fixed the issue.Fixes #8980