1.Run your first pod
BeginnerStart a pod called web from nginx:1.30-alpine, wait until it is ready, print its phase, then delete it.
Show hint
kubectl run, then kubectl wait --for=condition=Ready.
Show solution
kubectl run web --image=nginx:1.30-alpine
kubectl wait --for=condition=Ready pod/web --timeout=90s > /dev/null
kubectl get pod web -o jsonpath='{.status.phase}{"\n"}'
kubectl delete pod web --wait=false > /dev/nullpod/web created
Running