Created
November 15, 2018 15:39
-
-
Save rbo/d8e7d02591c7e89dd658d0da945aded1 to your computer and use it in GitHub Desktop.
initContainers - check tcp port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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