-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Closed
Copy link
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.sig/appsCategorizes an issue or PR as relevant to SIG Apps.Categorizes an issue or PR as relevant to SIG Apps.
Description
/kind bug
/sig bugs
What happened:
I created a cronjob using an example to echo "Hello world" every minute. Works perfectly.
If instead I replace the function to be called to wget with an unreachable website, the new pods keep being created and the older ones aren't deleted.
What you expected to happen:
I expected that once the pod for the job fails it should be deleted.
How to reproduce it (as minimally and precisely as possible):
kubectl run hello --schedule="*/1 * * * *" --restart OnFailure --image busybox -- /bin/wget www.asdf.asdf
Anything else we need to know?:
I just used the wrong website as an example to create cronjob failure. Any other command that fails results in the same issue
Environment:
- Kubernetes version (use
kubectl version
): v1.8.6 - Cloud provider or hardware configuration: minikube 1.9
- OS (e.g. from /etc/os-release): Mac high sierra
- Kernel (e.g.
uname -a
): darwin kernel 17.3.0 - Install tools:
- Others:
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.sig/appsCategorizes an issue or PR as relevant to SIG Apps.Categorizes an issue or PR as relevant to SIG Apps.