Add default k8s.suffix
This commit is contained in:
parent
caf6dab808
commit
01f8ce1dc7
|
@ -153,10 +153,10 @@ cluster.autoclean = 5m
|
|||
## Value: String
|
||||
## cluster.k8s.app_name = emqx
|
||||
|
||||
## The suffix added to hostname get from k8s service, only valid if cluster.k8s.address_type set to hostname
|
||||
## The suffix added to dns and hostname get from k8s service
|
||||
##
|
||||
## Value: String
|
||||
## cluster.k8s.hostname_suffix =
|
||||
## cluster.k8s.suffix = pod.cluster.local
|
||||
|
||||
## Kubernates Namespace
|
||||
##
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
{datatype, string}
|
||||
]}.
|
||||
|
||||
{mapping, "cluster.k8s.hostname_suffix", "ekka.cluster_discovery", [
|
||||
{mapping, "cluster.k8s.suffix", "ekka.cluster_discovery", [
|
||||
{datatype, string},
|
||||
{default, ""}
|
||||
]}.
|
||||
|
@ -182,7 +182,7 @@
|
|||
{address_type, cuttlefish:conf_get("cluster.k8s.address_type", Conf, ip)},
|
||||
{app_name, cuttlefish:conf_get("cluster.k8s.app_name", Conf)},
|
||||
{namespace, cuttlefish:conf_get("cluster.k8s.namespace", Conf)},
|
||||
{hostname_suffix, cuttlefish:conf_get("cluster.k8s.hostname_suffix", Conf, "")}];
|
||||
{suffix, cuttlefish:conf_get("cluster.k8s.suffix", Conf, "")}];
|
||||
(manual) ->
|
||||
[ ]
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue