Hi all, I‘m running the job example https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
apiVersion: batch/v1 kind: Job metadata: name: pi spec: template: metadata: name: pi spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] restartPolicy: Never I got some warning [root@c3-sa-i2-20151229-buf023 ~]# kubectl get po -a NAME READY STATUS RESTARTS AGE pi-nww4h 0/1 Completed 0 23m [root@c3-sa-i2-20151229-buf023 ~]# kubectl describe job pi Name: pi Namespace: default Image(s): perl Selector: controller-uid=906a0072-4b69-11e7-85a4-244427eb4676 Parallelism: 0 Completions: 1 Start Time: Wed, 07 Jun 2017 18:10:42 +0800 Labels: controller-uid=906a0072-4b69-11e7-85a4-244427eb4676 job-name=pi Pods Statuses: 1 Running / 1 Succeeded / 0 Failed No volumes. Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-5n0vn 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-5n0vn 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-qlp5f 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-j9z6s 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-qlp5f 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-mf1j9 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-mf1j9 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-j9z6s 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-qlp5f 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-w3m2m 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-qlp5f 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-5n0vn 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-nww4h 23m 23m 2 {job-controller } Normal SuccessfulDelete Deleted pod: pi-p8pt9 23m 23m 1 {job-controller } Warning FailedDelete Error deleting: pods "pi-mf1j9" not found 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-w3m2m 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-69l9r 23m 23m 1 {job-controller } Normal SuccessfulCreate Created pod: pi-p8pt9 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-69l9r 23m 23m 1 {job-controller } Normal SuccessfulDelete Deleted pod: pi-p8pt9 23m 23m 1 {job-controller } Warning TooManyActivePods Too many active pods running after completion count reached 23m 23m 1 {job-controller } Warning TooManyActivePods Too many active pods running after completion count reached 23m 23m 1 {job-controller } Warning TooManyActivePods Too many active pods running after completion count reached Why start so many pod and delete it? I can't delete the job [root@c3-sa-i2-20151229-buf023 ~]# kubectl delete job pi error: timed out waiting for "pi" to be synced -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.