#!/bin/sh git_retries=20 try=0 if [ -n "${CONTENT_GIT_REPO}" ] ; then export GIT_SSH_COMMAND='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"' until timeout 10 git clone --recurse-submodules ${CONTENT_GIT_REPO} /app ; do echo "Retry git pull after error ($try / $git_retries)" try=$((try+1)) if [ $try -eq $git_retries ]; then exit 1 fi sleep 1 done fi cd /app if [ -e index.html ] ; then mv index.html index-embedded.html fi cat <index.html Html-Kube-Tester fron ${KUBE_NODE_NAME}

From node ${KUBE_NODE_NAME}
as json - text

EOF if [ -n "${CONTENT_GIT_REPO}" ] ; then cat <>index.html