To wait until your pod is running, check for “condition=ready”. In addition, prefer to filter by label, rather than specifying pod id. For example:
$ kubectl wait --for=condition=ready pod -l app=netshoot
pod/netshoot-58785d5fc7-xt6fg condition met
Another option is rollout status – To wait until the deployment is done:
$ kubectl rollout status deployment netshoot
deployment "netshoot" successfully rolled out
Both options works great in automation scripts, when it is required to wait for an app to be installed. However, as @CallMeLaNN noted for the second option, deployment “rolled out” is not necessarily without errors.