Run a CronJob manually
Starts a CronJob right now as a one-off Job
kubectl create job --from=cronjob/<name> manual-run -n <ns>
- tool
- kubectl73 commands
More kubectl commands
-
kubectl wait pod -l app=<label> -n <ns> --for=condition=Ready --timeout=120sWaits until matching pods are Ready or the timeout runs out
-
kubectl get --raw /metrics | grep apiserver_request_totalPulls raw Prometheus metrics from the apiserver, no monitoring stack needed
-
kubectl get --raw '/healthz/etcd?verbose'Checks etcd connectivity through the apiserver health endpoint
-
kubectl get --raw '/apis/metrics.k8s.io/v1beta1/nodes' | jq '.items[] | {name:.metadata.name, cpu:.usage.cpu, mem:.usage.memory}'Raw node usage from the metrics API, without kubectl top formatting
-
kubectl debug <pod> -n <ns> --copy-to=<pod>-dbg --share-processes --image=nicolaka/netshoot -- sleep infinityCreates a copy of the pod with a debug container in a shared PID namespace; the original pod is not touched