github.com/replicatedhq/ship@v0.55.0/integration/unfork/redis-k8s/expected/base/health-configmap.yaml (about) 1 --- 2 # Source: redis/templates/health-configmap.yaml 3 apiVersion: v1 4 kind: ConfigMap 5 metadata: 6 labels: 7 app: redis 8 chart: redis-5.0.0 9 heritage: Tiller 10 release: redis 11 name: redis-health 12 data: 13 ping_local.sh: |- 14 response=$( 15 redis-cli \ 16 -a $REDIS_PASSWORD \ 17 -h localhost \ 18 -p $REDIS_PORT \ 19 ping 20 ) 21 if [ "$response" != "PONG" ]; then 22 echo "$response" 23 exit 1 24 fi 25 ping_master.sh: |- 26 response=$( 27 redis-cli \ 28 -a $REDIS_MASTER_PASSWORD \ 29 -h $REDIS_MASTER_HOST \ 30 -p $REDIS_MASTER_PORT_NUMBER \ 31 ping 32 ) 33 if [ "$response" != "PONG" ]; then 34 echo "$response" 35 exit 1 36 fi 37 ping_local_and_master.sh: |- 38 script_dir="$(dirname "$0")" 39 exit_status=0 40 "$script_dir/ping_local.sh" || exit_status=$? 41 "$script_dir/ping_master.sh" || exit_status=$? 42 exit $exit_status