Countdown job in Kubernetes - task failed

Team,
Can you please check why this task got failed?

Task Status - Failed
image used is not ‘centos’

thor@jump_host ~$ kubectl describe jobs
Name: countdown-devops
Namespace: default
Selector: controller-uid=a2ecdb27-c9da-4344-adb3-48dba89d2910
Labels: controller-uid=a2ecdb27-c9da-4344-adb3-48dba89d2910
job-name=countdown-devops
Annotations:
Parallelism: 1
Completions: 1
Start Time: Thu, 30 Jul 2020 08:15:00 +0000
Completed At: Thu, 30 Jul 2020 08:15:11 +0000
Duration: 11s
Pods Statuses: 0 Running / 1 Succeeded / 0 Failed
Pod Template:
Labels: controller-uid=a2ecdb27-c9da-4344-adb3-48dba89d2910
job-name=countdown-devops
Containers:
** container-countdown-devops:**
** Image: centos:latest**

thor@jump_host ~$ kubectl create -f countdown-devops.yaml
job.batch/countdown-devops created
thor@jump_host ~$ kubectl get pods
NAME READY STATUS RESTARTS AGE
countdown-devops-8zns7 0/1 Completed 0 18s
thor@jump_host ~$ kubectl logs countdown-devops-8zns7
10
9
8
7
65
4
3
2
1

You used centos:latest, but for the task you should use only centos without tag.

In the task , it was mentioned as below

“Use image centos, preferably with latest tag and restart policy should be Never”.

I understood that I need to use latest tag.

Strange for me also. In other task I got failed for the same reason!!

@Inderpreet,

Can you please check and confirm this?

All kubernetes tasks fail if a tag is specified. I don’t think it should, but none from KKE team has said anything yet about this matter

@q69145 thanks for reporting this. We have marked this task as Success for you. And we are working on to fix this issue.

The other ones who failed because of a tag will be given success too?

Hello, francilio
They will look into it. Don’t worry. They will give proper response.

@francilio Can you please share more details which other task you are mentioning about ?

Some other topics were created about the same issue, task failing if the image was defined with a tag. I saw a lot of them being answered, so I don’t know if there’s one unanswered yet. I’ll let you know if I find one

1 Like