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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -