-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: support rr_dns lookup host #113
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@jiuker what is needed here is not a custom resolver but a way to get inputs for list of backends that you need to monitor. Today customers specify
However the plan is to support a DNS that provides a CNAME list of hosts or A record of IPs like this.
Now before starting sidekick you must do https://pkg.go.dev/net#LookupHost to get the list of addrs and then use those addrs to register backends. So ideally a customer would specify just this
Now we should support SIGHUP to ensure we can do a fresh lookup of This is for situations like customer added a new pool but they are simply updating their DNS entries but not sidekick command line configuration, sidekick simply automatically starts regarding new pool backends as soon as SIGHUP is called. This PR right now is not doing what we want. |
@ramondeklein @klauspost review this again please. |
|
Before I review the code, I want to understand the requested functionality. As I understand there are two ways to configure sidekick:
I think we need a little different implementation to support this feature. There should be one go-routine (that runs every 5 minutes or when forced using
I'm not sure if we should also support round-robin DNS look-up for the ellipsis notation or always use the first IP that is presented (@harshavardhana what do you think?) Sidekick will create a custom |
apply suggestion
If you have a single arg RR-DNS based, multiple host input is supported; if you specify more than one arg either via ellipses or multiple separate hosts, we do not invoke this code. |
@jiuker there are some UI changes we need will keep you posted |
apply suggestion
apply suggestion
apply suggestion
apply suggestion
@ramondeklein review again plz |
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.
One open comment, but I'm fine keeping the CLI parameter.
feat: support rr_dns lookup host