<p>I'm trying the following command to build Apache Flink seamlessly on openshift 4.4.9 google cloud. But pods makes the following mistake all the time, and Flink doesn't goes up such as Running-state.</p>
<p>What do you think is the problem and how can I fix it ?</p>
<p>Here is an example of an issue that I get;</p>
<p>Port:           
Host Port:      
State:          Waiting
Reason:       CrashLoopBackOff
Last State:     Terminated
Reason:       Completed</p>
<p>Here is the Flink DockerFile to find out the problem:</p>
<p><a href="https://github.com/keremceliker/flgkrc" rel="nofollow noreferrer">https://github.com/keremceliker/flgkrc</a></p>
<p>**I need to run Flink on Centos/ImagesPod. (Just in case)</p>

keremceliker
<p>Since you don't get an error and the reason for termination is &quot;Completed&quot;, it means that the pod does what you ask it to do. The pod would stay alive if its main process would still be running.</p>
<p>From your Dockerfile, the main process is <code>help</code> (defined by <code>CMD [&quot;help&quot;]</code>). My best guess is that this command prints a help message and exists, thus triggering the termination of the pod as well.</p>
<p>You should remove the CMD declaration or adjust it by passing a command that keeps a process running.</p>
