Skip to content

Commit

Permalink
Merge pull request #1 from aerospike/spk/service-dns-domain
Browse files Browse the repository at this point in the history
[CLOUD-7] - Add support for custom service DNS domain
  • Loading branch information
spkesan authored Mar 26, 2020
2 parents 1df6576 + 506b773 commit ab30b4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ CONFIG_VOLUME="/etc/aerospike"
APE_CONFIG_VOLUME="/etc/aerospike-prometheus-exporter"
NAMESPACE=${POD_NAMESPACE:-default}
K8_SERVICE=${SERVICE:-aerospike}
SERVICE_DNS_DOMAIN=${SERVICE_DNS_DOMAIN:-cluster.local}

for i in "$@"
do
case $i in
Expand Down Expand Up @@ -77,4 +79,4 @@ if [ -f /configs/ape.toml.template ]; then
cp /configs/ape.toml.template "${APE_CONFIG_VOLUME}"/
fi

/peer-finder -on-start=/on-start.sh -service=$K8_SERVICE -ns=${NAMESPACE} -domain=cluster.local
/peer-finder -on-start=/on-start.sh -service=${K8_SERVICE} -ns=${NAMESPACE} -domain=${SERVICE_DNS_DOMAIN}

0 comments on commit ab30b4f

Please sign in to comment.