If you need to run shell instructions inside your Kubernetes cluster, then you need to use the
kubectl run command.
What the syntax seems to be like
kubectl run --image=<imagename> <title> -restart=By no means -it --rm -- /bin/sh -c "<command>"
Breaking this down, you cross in an
imagename which is the container picture you want to execute the instructions in, the
title of this short-term container, after which
command you want to run in it.
-it signifies that it’s an interactive command, whereas
--rm tells the container to not persist as soon as it has accomplished execution.
An instance command
kubectl run --image=busybox bbox1 --restart=By no means -it --rm -- /bin/sh -c "wget -q0 http://188.8.131.52/"
Be aware that the IP above
184.108.40.206 ought to be swapped out with the IP deal with you wish to run
wget in opposition to. You will get your Cluster IP by operating
kuebctl get svc.