-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(coredns): use txt-owner-id to strictly separated external-dns instances #5921
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jan Jansen <[email protected]>
|
Hi @farodin91. Thanks for your PR. I'm waiting for a github.com 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
@ivankatliarchuk I moved to behavior inside the provider only. It would possible to built this with a etcd proxy, that would require much more work with only a little gain. Going for advanced multi cluster solution is a different step. |
|
What is missing with this PR. It does not describe well enough the problem, either a configuration that we could execute locally and test it. I'd assume coredns may require a specific configuration as well. Records managed by external-dns, not by coredns. For external dns we already have an owner, and adding flag As well as flag We don't have any sort of specific roadmap or product vision around multi-cluster .External-dns currently don't handle multi cluster, due to complexity, but not strictly against that. This sounds more like has to be resolved with cluster mesh or coredns multicluster plugin. Due to nature, as external-dns writes data to external etcd, is not as difficult to add multi cluster support. For other reviewers, the PR adds a field to records in etcd. Something like Kubernetes manifests ---
apiVersion: v1
kind: Service
metadata:
name: a
annotations:
external-dns.alpha.kubernetes.io/hostname: a.example.org
external-dns.alpha.kubernetes.io/coredns-group: "g1"
cluster-name: "cluster1"
namespace: default
spec:
type: LoadBalancer
ports:
- port: 80
name: http
targetPort: 80
selector:
app: test-app
---
apiVersion: v1
kind: Service
metadata:
name: a-cluster2
annotations:
external-dns.alpha.kubernetes.io/hostname: a.example.org
external-dns.alpha.kubernetes.io/coredns-group: "g1"
cluster-name: "cluster2"
namespace: default
spec:
type: LoadBalancer
ports:
- port: 80
name: http
targetPort: 80
selector:
app: test-appbefore, the second service will not get created, as there is a clash - same host, same values. We could swap the group from with the change |
…stances Signed-off-by: Jan Jansen <[email protected]>
|
@ivankatliarchuk I added another Commit use txt-owner-id instead. Do you think this way is better? |
|
/ok-to-test Have you tried in your environment? Could you share similar results for this PR #5085 (comment). Need to make sure it works before we merge, I'll try to smoke test right after as well. |
|
@ivankatliarchuk I've tried the setup in our staging env with managed by variant. As we had issues without such a filter. The test should be fixed with my next push. |
Signed-off-by: Jan Jansen <[email protected]>
Pull Request Test Coverage Report for Build 18900103742Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
|
@ivankatliarchuk tests are fixed. |
What does it do ?
It adds a field to the service value in etcd to keep track of which service is provided by which coredns.
Motivation
Replacement of #5860. This keeps the behavior inside of the coredns provider.
More