mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user