1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-03-24 22:34:42 +00:00

Switched from docker swarm to Kubernetes with rke

This commit is contained in:
2020-05-11 19:39:13 -04:00
parent 01f384ac14
commit 1e5724ec1d
30 changed files with 458 additions and 488 deletions

3
tests/lib/mysql-query.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never \
-- mysql -h mysql-cluster-mysql -u root -ppassword -e "show databases; show slave status;"

View File

@@ -9,7 +9,7 @@ function testbash() {
local name="${1}"
shift
local command="${@}"
eval $command
eval "${command}"
local return=$?
if [[ ! $return -eq 0 ]]; then
echo "${red}FAILED: ${name}${reset}"