-
Notifications
You must be signed in to change notification settings - Fork 9
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
DNS record orphan mitigation #202
Labels
kind/epic
Epic
Comments
Related: Kuadrant/kuadrant-operator#649 We may want some form of visibility in the dashboard around this |
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 13, 2024
add domain owners to dnsrecord
1 similar comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
In some circumstances, it is possible that a dns record is left behind by a controller:
We want to enable users to identify records that have become orphans so that action can be taken to clean them up.
How
Identification:
Each controller managing a DNSRecord should be able to see the owner id of each other controller working on the record set for that rootDomain. Adding a section to the DNSRecord status such as:
and exporting this via a metric something like:
dnspolicy_status_root_domain_owners{name="mypolicy",namespace="mynamespace",root_domain_owner="id3", root_domain=a.b.com} 1
anddnsrecord_status_root_domain_owner{name="myrecord1", namespace="mynamespace", root_domain_owner="id1", root_domain="a.b.com"} 1
it should be possible to trigger an alert if the number of DNSRecords is less than the number of owners . We should work with @david-martin @R-Lawton to work through what metrics would make sense to achieve the goal the above is just an idea.and a record can only have 1 owner, it might look like this:
Then a join query might look like this:
That would give you a value of 3 (as there's 3 dnsrecords that it can join on).
If you want to alert if that number is wrong, you can compare it to the count of root_domain_owners on the policy:
Clean Up:
Talking with @mikenairn we could craft a method that would result in creating a new DNSRecord with the missing owner id to be reconciled by an existing controller and then delete this record to force the controller to remove the records related to that owner id.
The text was updated successfully, but these errors were encountered: