A collection of useful kubectl
commands.
kubectl run psql -i --tty --image=jbergknoff/postgresql-client --restart=Never --command --namespace=<mynamespace> -- bash
[...]
kubectl delete pod psql --namespace=<mynamespace>
kubectl delete jobs --namespace=<mynamespace> $(kubectl get jobs --namespace=<mynamespace> -o custom-columns=:.metadata.name)
kubectl delete pods --namespace <namespace> --field-selector=status.phase==Succeeded