examples/vitess: Update for Vitess v2.0.0-alpha5

This also enables built-in backup, so the caveat about starting new pods
no longer applies.
This commit is contained in:
Anthony Yeh
2015-10-27 15:16:32 -07:00
parent 5c903dbcac
commit ec99cc2865
12 changed files with 151 additions and 34 deletions

View File

@@ -21,7 +21,7 @@
KUBECTL=${KUBECTL:-kubectl}
# This should match the nodePort in vtctld-service.yaml
VTCTLD_PORT=${VTCTLD_PORT:-30000}
VTCTLD_PORT=${VTCTLD_PORT:-30001}
# Customizable parameters
SHARDS=${SHARDS:-'-80,80-'}
@@ -53,3 +53,11 @@ get_vtctld_addr() {
echo "$VTCTLD_ADDR"
}
config_file=`dirname "${BASH_SOURCE}"`/config.sh
if [ ! -f $config_file ]; then
echo "Please run ./configure.sh first to generate config.sh file."
exit 1
fi
source $config_file