作业运行四次,并出现错误。此后,尽管默认选项importFromDir
设置为六个,但它不会继续运行。
为什么会这样?
backoffLimit
spec:
activeDeadlineSeconds: 600
backoffLimit: 6
completions: 1
parallelism: 1
----编辑(添加更多信息)------
描述输出:
test-job-pqgz7 0/1 Error 0 10m
test-job-s6j4h 0/1 Error 0 9m50s
test-job-vgjcc 0/1 Error 0 10m
test-job-w4c7v 0/1 Error 0 10m
Kubernetes版本:
[root@kube-master-01 ~]# kubectl describe job
Name: test-job
Namespace: default
Selector: controller-uid=fa052b6a-7bb5-11e9-bb14-fa163ec7733c
Labels: controller-uid=fa052b6a-7bb5-11e9-bb14-fa163ec7733c
job-name=test-job
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"batch/v1","kind":"Job","metadata":{"annotations":{},"name":"test-job","namespace":"default"},"spec":{"activeDeadlineSeconds...
Parallelism: 1
Completions: 1
Start Time: Tue, 21 May 2019 18:48:32 +0800
Active Deadline Seconds: 1200s
Pods Statuses: 0 Running / 0 Succeeded / 4 Failed
Pod Template:
Labels: controller-uid=fa052b6a-7bb5-11e9-bb14-fa163ec7733c
job-name=test-job
Containers:
busybox:
Image: busybox
Port: <none>
Host Port: <none>
Command:
sh
Args:
-c
wget --server-response --spider www123.baidu.com 2>&1|grep '200 OK'
Environment: <none>
Mounts: <none>
Volumes: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 3m51s job-controller Created pod: test-job-gzkfg
Normal SuccessfulCreate 3m44s job-controller Created pod: test-job-jszs5
Normal SuccessfulCreate 3m34s job-controller Created pod: test-job-9h5sb
Normal SuccessfulCreate 2m54s job-controller Created pod: test-job-ck4x6
Warning BackoffLimitExceeded 14s job-controller Job has reached the specified backoff limit