зеркало из https://github.com/github/vitess-gh.git
20 строки
347 B
Bash
Executable File
20 строки
347 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This is an example script that starts vtctld.
|
|
|
|
set -e
|
|
|
|
script_root=`dirname "${BASH_SOURCE}"`
|
|
source $script_root/env.sh
|
|
|
|
echo "Creating vtctld service..."
|
|
$KUBECTL create -f vtctld-service.yaml
|
|
|
|
echo "Creating vtctld pod..."
|
|
$KUBECTL create -f vtctld-pod.yaml
|
|
|
|
server=$(get_vtctld_addr)
|
|
echo
|
|
echo "vtctld address: http://$server"
|
|
|