kubectl run 有和docker run 类似的用法,快速新建一个pod
kubectl run -it --image=busybox --restart=Never --rm busybox-po -- /bin/sh
kubectl run -i -tty --image=busybox --restart=Never --rm busybox-po -- /bin/sh
--restart=Never 参数表示退出Pod后不重启
--rm 表示退出即删除
kubectl run 有和docker run 类似的用法,快速新建一个pod
kubectl run -it --image=busybox --restart=Never --rm busybox-po -- /bin/sh
kubectl run -i -tty --image=busybox --restart=Never --rm busybox-po -- /bin/sh
--restart=Never 参数表示退出Pod后不重启
--rm 表示退出即删除