Kubernetes cron job call curl in loop
Minor modification:
dollar sign $ should be escaped -> \$
"\$exit_status" in place of $exit_status
bash -c " echo \"Running cron loop\"; while true; do exit_status=\$(curl -v -o /dev/null -w '%{http_code}' http://bbc.com); if [ \$exit_status -ne 200 ]; then exit 1; fi sleep 2; done "