Why I get "CrashLoopBackOff "

Hi,
I am testing kubernetes.
My Dockerfile:
FROM continuumio/anaconda3:latest
WORKDIR /app
CMD [“echo”, “Hello Doğa”]

apiVersion: v1
kind: Pod
metadata:
name: test-pod
spec:
containers:

  • image: atemiz/bokeh2
    name: test-container
    volumeMounts:
    • mountPath: /app
      name: app-volume
      volumes:
  • name: app-volume
    emptyDir: {}

kubectl get pod test-pod
NAME READY STATUS RESTARTS AGE
test-pod 0/1 CrashLoopBackOff 9 (42s ago) 22m

Can you tell me what the potential causes might be ?
What am I doing wrong

PS : Docker run … is OK

regards

There could be a few reasons, but the most efficient way is to let Sosivio tell you the issue. Sosivio installs in under 5 min, is free to try (no payment information required), and instantly finds root causes to issues, and provides a fix. Try it for free at sosiv.io or ping me if you’d like to learn more.

1 Like

Can you provide the following commands output

kubectl logs -f test-pod -n <namespace>

Or get them from the pod page in Sosivio as Stephen mentioned