-
Added the ability to configure the cluster's host name as used by the operator, which defaults to
{pod}.{cluster name}-instances.{namespace}.svc.{cluster domain}
.The new
MYSQL_OPERATOR_FQDN_TEMPLATE
environment variable can override the default value, and the newInnoDBCluster
spec.serviceFqdnTemplate
property can overwrite the value for a cluster. This value can not be changed after creating the InnoDB Cluster.The default template value is
{service}.{namespace}.svc.{domain}
, and the generated host is prefixed with the pod name. The meaning of these template values:{service}
is the name of the generated headless service, such as mycluster-instances;{namespace}
is the Kubernetes namespace where the InnoDB Cluster is deployed, such as default; and {domain} is the Kubernetes cluster domain, which defaults tocluster.local
. (WL #16167)