Fix deprecation warning on example execution (#17522)

Fix for the deprecation warning when executing the command:
```bash
$ kubectl run hello --schedule="*/1 * * * *" --restart=OnFailure --image=busybox -- /bin/sh -c "date; echo Hello from the Kubernetes cluster"
kubectl run --generator=cronjob/v1beta1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
```
This commit is contained in:
tom1299
2019-11-12 03:16:08 +01:00
committed by Kubernetes Prow Robot
parent 66dde86d0a
commit 6008b3d3fc
@@ -61,7 +61,7 @@ cronjob.batch/hello created
Alternatively, you can use `kubectl run` to create a cron job without writing a full config:
```shell
kubectl run hello --schedule="*/1 * * * *" --restart=OnFailure --image=busybox -- /bin/sh -c "date; echo Hello from the Kubernetes cluster"
kubectl run --generator=run-pod/v1 hello --schedule="*/1 * * * *" --restart=OnFailure --image=busybox -- /bin/sh -c "date; echo Hello from the Kubernetes cluster"
```
After creating the cron job, get its status using this command: