You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
Description: multiple services may wish to share same DNS, while having different targets (Load Balancers). Hence, in certain cases we need to configure records in the cloud provider to support multiple targets.
Current State:
Multiple targets are supported in GKE, but not in AWS. In AWS environment two endpoints with same DNS will result in an error returned from AWS API (two non-weighted alias records sharing same DNS value).
Possible Solutions:
Create a Route53 weighted records instead of simple records. Hence, Mate will add/remove targets from the record as services are changed/removed. However if this is done implicitly the potential problem is that this may result in unexpected behaviour from user's point of view. In my opinion, this should be done explicitly only when certain annotation exist on the service, indicating that the service should get weighted RRS on Route53 (other services should be labeled with same annotation):
Maybe use some zalando.org/dnsweight annotation with an integer value (weight) instead? If the annotation does not exist, throw an error if more than one service specifies the same zalando.org/dnsname. Otherwise just use the annotation value as Route53 weight. This allows weighted DNS load balancing such as what Senza does.
We got multiple services with same DNS and all with zalando.org/dnsweight value - create as expected
We got multiple services with same DNS name and only some with zalando.org/dnsweight value -
a. If there exist a record of some type in Route53 - just create record(s) of correct type and discard others
b. If none exist at this moment - give priority to weighted records and record(s) without zalando.org/dnsweight annotation is discarded.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description: multiple services may wish to share same DNS, while having different targets (Load Balancers). Hence, in certain cases we need to configure records in the cloud provider to support multiple targets.
Current State:
Multiple targets are supported in GKE, but not in AWS. In AWS environment two endpoints with same DNS will result in an error returned from AWS API (two non-weighted alias records sharing same DNS value).
Possible Solutions:
Create a Route53 weighted records instead of simple records. Hence, Mate will add/remove targets from the record as services are changed/removed. However if this is done implicitly the potential problem is that this may result in unexpected behaviour from user's point of view. In my opinion, this should be done explicitly only when certain annotation exist on the service, indicating that the service should get weighted RRS on Route53 (other services should be labeled with same annotation):
If annotation is missing, simple record will be created. The rule of not overwriting existing record still applies.
@linki @Raffo @mikkeloscar @hjacobs
The text was updated successfully, but these errors were encountered: