Trigger CronJob manually kubectl
Immediately run a CronJob as a one-off Job
kubectl create job --from=cronjob/<name> manual-run -n <ns>
more kubectl
all 73 commands →
Wait for pod ready
kubectl wait pod -l app=<label> -n <ns> --for=condition=Ready --timeout=120s
Scrape apiserver metrics endpoint
kubectl get --raw /metrics | grep apiserver_request_total
Check etcd health via apiserver
kubectl get --raw '/healthz/etcd?verbose'
Node metrics from metrics.k8s.io API
kubectl get --raw '/apis/metrics.k8s.io/v1beta1/nodes' | jq '.items[] | {name:.metadata.name, cpu:.usage.cpu, mem:.usage.memory}'
Ephemeral debug copy with shared PIDs
kubectl debug <pod> -n <ns> --copy-to=<pod>-dbg --share-processes --image=nicolaka/netshoot -- sleep infinity