<p>I am using kubernetes/minikube and I've tried to install my application docker image by using a POD configuration yaml file as follow:</p>
<p>So far so good but problem starts just when I try to build my pod by executing:
<code>kubectl create -f employee-service-pod.yaml -n dev-samples</code></p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: employee-service-pod
spec:
  containers:
    - name: employee-service-cont
      image: doviche/employee-service:latest
      imagePullPolicy: IfNotPresent
      command: [ &quot;echo&quot;, &quot;SUCCESS&quot; ]
  restartPolicy: Always
  imagePullSecrets:
    - name: employee-service-secret
</code></pre>
<p>status: {}<a href="https://i.stack.imgur.com/hOgkx.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>When I checkout my POD does show the following error:
Back-off restarting failed container</p>
<p>Soon after I ran:
<code>kubectl describe pod employee-service-pod -n dev-samples</code>
which shows what is on the image attached to this post:</p>
<p>Honestly I have not been able to identify what's causing the Warning and that's why I've decided to share it with you to see if some good eye sees the arcane.</p>
<p>I appreciate any help as I am stuck on this since so long</p>
<p>I am using minikube v1.11.0 on Linuxmint 19.1.</p>
<p>Many thanks in advance guys.</p>

Douglas Oviche
<p>Your application completed its work successfully (echo SUCCESS) since you have mentioned <strong>restartPolicy of the container as Always</strong>, it is trying restart again and again and going to crashLoopbackoff state.</p>
<p>Please change the container <strong>restartPolicy: OnFailure</strong>, this should mark the pod status completed once the process/command ends in the container.</p>
<p>Thanks,</p>
