Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Provide a deterministic approach for resources requesting same hostname #71

Open
ideahitme opened this issue Jan 20, 2017 · 3 comments
Open
Assignees

Comments

@ideahitme
Copy link
Contributor

ideahitme commented Jan 20, 2017

Currently resources which request same hostname example.com will be interchangeably given DNS record on Route53 (possible Google DNS too). It can be resolved by creating deterministic approach - do not overwrite the record if it was created in Route53 and still required.

If we have to records: elb-aws-1.com requesting example.com and elb-aws-2.com requesting example.com, then we check with AWS Route53:

  1. if there exists a record owned by Mate example.com:
    a. it is pointing to either elb-aws-1.com or elb-aws-2.com - no changes at all
    b. it is pointing to neither. Choose any of the two and create the record
  2. If no record exists for example.com - pick any of the two

/cc @linki is there any issue regarding that in GKE ?

@ideahitme
Copy link
Contributor Author

This is not (yet?) a deterministic approach, but the flow described above is addressed in this PR: #74

@linki
Copy link
Owner

linki commented Jan 30, 2017

I think it will create multiple A records with the same name pointing to different services. Neat, if you want it but bad if you don't.

Your solution makes sure that only one service is allowed per DNS name? (whoever is first wins?)

@ideahitme
Copy link
Contributor Author

ideahitme commented Jan 30, 2017

@linki since we are using upsert only, it will not create duplicates :)
Yes for the question :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants