Kubectl Command To Create Temporary Pod and Connect For Testing
Below is the command to create busybox temporary pod.
kubectl run -it --rm busybox --image=busybox
With above command we will connect to the pod once it is created. Once we exit the pod using exit command, created pod will be deleted as it is temporary pod.
Below is snippet
$ kubectl run -it --rm busybox --image=busybox
If you don't see a command prompt, try pressing enter.
/ #
/ # exit
If you don't see a command prompt, try pressing enter.
/ #
/ # exit
No comments:
Post a Comment