[英]Can we point multiple domain names to the same IP address?
I have two GKE cluster (GKE-OLD and GKE-NEW) running behind two separate load balancers.我有两个 GKE 集群(GKE-OLD 和 GKE-NEW)在两个单独的负载均衡器后面运行。
The GKE-OLD cluster runs behind a L4 global load balancer where as the GKE-NEW cluster runs behind a L7 load balancer. GKE-OLD 集群在 L4 全局负载均衡器之后运行,而 GKE-NEW 集群在 L7 负载均衡器之后运行。
The services of the clusters are accessible through two separate domain names.集群的服务可以通过两个单独的域名访问。
www.service.company.com
points to the L4 load balancer behind which the GKE-OLD cluster is running. www.service.company.com
指向运行 GKE-OLD 集群的 L4 负载均衡器。
www.service-1.company.com
points to the L7 load balancer behind which the GKE-NEW cluster is running. www.service-1.company.com
指向运行 GKE-NEW 集群的 L7 负载均衡器。
I want to eventually get rid of the old cluster and LB associated with it.我想最终摆脱旧的集群和与之相关的 LB。 However, I want to keep the domain name
(www.service.company.com)
from the old cluster and eventually retire the www.service-1.company.com
domain name that is associated with the new cluster.但是,我想保留旧集群中的域名
(www.service.company.com)
并最终停用与新集群关联的www.service-1.company.com
域名。
Before I decommission the old cluster, the current setup I want to have should look something like this:在我停用旧集群之前,我想要的当前设置应该如下所示:
My questions are:我的问题是:
Can we have multiple domains pointing at same IP address (LB) and same domain pointing at multiple IP addresses (LBs) at the same time?我们是否可以有多个域同时指向同一个 IP 地址 (LB) 和同一个域指向多个 IP 地址 (LB)?
www.service.company.com
and www.service-1.company.com
pointing at the same load balancer. www.service.company.com
和www.service-1.company.com
指向同一个负载均衡器。 And www.service.company.com
pointing at both L4 and L7 LBs.并且
www.service.company.com
指向 L4 和 L7 LB。
Can we have multiple domains pointing at same IP address (LB) and same domain pointing at multiple IP addresses (LBs)
我们能否有多个域指向同一个 IP 地址 (LB) 和同一个域指向多个 IP 地址 (LB)
Yes you can have multiple names resolve to the same IP address (either directly with A
and AAAA
or through CNAME
records), and yes you can have a name resolving to multiple IP addresses (again through direct A
+ AAAA
records or through CNAME
records), but in which case, except if there is some specific tooling on the client side (the application consuming those records), things will work in a load balancing fashion among all addresses, not in failover fashion.是的,您可以将多个名称解析为相同的 IP 地址(直接使用
A
和AAAA
或通过CNAME
记录),是的,您可以将名称解析为多个 IP 地址(再次通过直接A
+ AAAA
记录或通过CNAME
记录) ,但在这种情况下,除非客户端有一些特定的工具(使用这些记录的应用程序),否则事情将在所有地址之间以负载平衡方式工作,而不是以故障转移方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.