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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -