kubernetes - How can I debug why my single-job pod ends with status = "Error"? -


i'm setting kubernetes cluster , testing small container. yaml file pod:

apiversion: v1 kind: pod metadata:   name: example spec:   restartpolicy: never   containers:   - name: node     image: 'node:5'     command: ['node']     args: ['-e', 'console.log(1234)'] 

i deploy kubectl create -f example.yml , sure enough runs expected:

$ kubectl logs example 1234 

however, pod's status "error":

$ kubectl po example name           ready     status    restarts   age example        0/1       error     0          16m 

how can investigate why status "error"?

kubectl describe pod example give more info on what's going on

also

kubectl events can more details although not dedicated given pod.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -