Change postgres service DNS name to resemble more appropriately DNS conventions
When a SGCluster
is created, two services are automatically exposed. One for the master connection (RW) and another one, load balanced, for the replicas (RO). However, tahe DNS name exposed contains the -primary
or -replica
suffixes.
As such, I propose the following renaming of these services DNS to:
- RW:
${SGCluster.name}-primary[.${SGCluster.namespace}]
- RO:
${SGCluster.name}-replicas[.${SGCluster.namespace}]
where Service.name = ${SGCluster.name}
and .${SGCluster.namespace}
is an optional part, only if the namespace is public
.
Edited by Alvaro Hernandez