Skip to content

Instantly share code, notes, and snippets.

@rbo
Created November 15, 2018 15:39
Show Gist options
  • Save rbo/d8e7d02591c7e89dd658d0da945aded1 to your computer and use it in GitHub Desktop.
Save rbo/d8e7d02591c7e89dd658d0da945aded1 to your computer and use it in GitHub Desktop.
initContainers - check tcp port
initContainers:
- name: check-eventserver
image: rhel7/rhel-tools
command: ['sh', '-c', 'while true ; do echo "Try to connect... " ; nc -z $SERVICENAME$ $PORT$ && break; sleep 5; done; echo "Eventserver is running..."']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment