mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-14 04:40:54 +08:00
集群DNS设置增加允许通过CNAME访问网站服务选项
This commit is contained in:
6078
build/rpc.json
6078
build/rpc.json
File diff suppressed because it is too large
Load Diff
@@ -2,8 +2,9 @@ package dnsconfigs
|
|||||||
|
|
||||||
// ClusterDNSConfig 集群的DNS设置
|
// ClusterDNSConfig 集群的DNS设置
|
||||||
type ClusterDNSConfig struct {
|
type ClusterDNSConfig struct {
|
||||||
CNameRecords []string `yaml:"cnameRecords" json:"cnameRecords"` // 自动加入的CNAME
|
CNameRecords []string `yaml:"cnameRecords" json:"cnameRecords"` // 自动加入的CNAME
|
||||||
TTL int32 `yaml:"ttl" json:"ttl"` // 默认TTL,各个DNS服务商对记录的TTL的限制各有不同
|
TTL int32 `yaml:"ttl" json:"ttl"` // 默认TTL,各个DNS服务商对记录的TTL的限制各有不同
|
||||||
|
CNameAsDomain bool `yaml:"cnameAsDomain" json:"cnameAsDomain"` // 是否可以像域名一样直接访问CNAME
|
||||||
|
|
||||||
NodesAutoSync bool `yaml:"nodesAutoSync" json:"nodesAutoSync"` // 是否自动同步节点状态
|
NodesAutoSync bool `yaml:"nodesAutoSync" json:"nodesAutoSync"` // 是否自动同步节点状态
|
||||||
ServersAutoSync bool `yaml:"serversAutoSync" json:"serversAutoSync"` // 是否自动同步服务状态
|
ServersAutoSync bool `yaml:"serversAutoSync" json:"serversAutoSync"` // 是否自动同步服务状态
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -273,6 +273,7 @@ message FindEnabledNodeClusterDNSResponse {
|
|||||||
bool serversAutoSync = 5;
|
bool serversAutoSync = 5;
|
||||||
repeated string cnameRecords = 7;
|
repeated string cnameRecords = 7;
|
||||||
int32 ttl = 8;
|
int32 ttl = 8;
|
||||||
|
bool cnameAsDomain = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 计算使用某个DNS服务商的集群数量
|
// 计算使用某个DNS服务商的集群数量
|
||||||
@@ -313,6 +314,7 @@ message UpdateNodeClusterDNSRequest {
|
|||||||
bool serversAutoSync = 5;
|
bool serversAutoSync = 5;
|
||||||
repeated string cnameRecords = 6;
|
repeated string cnameRecords = 6;
|
||||||
int32 ttl = 7;
|
int32 ttl = 7;
|
||||||
|
bool cnameAsDomain = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查集群的DNS是否有变化
|
// 检查集群的DNS是否有变化
|
||||||
|
|||||||
Reference in New Issue
Block a user