Answers for "how to curl a service inside a pod in kubernetes?"

0

how to curl a service inside a pod in kubernetes?

# Create a pod which here's named curl

kubectl curl --image=radial/busyboxplus:curl -it

# It will show a command prompt. Then run:

curl [your_service_name]

# After this, to repeat the curl, you just need to:

kubectl exec -it curl -- /bin/sh

# And make the curl [your_service_name]

# When finished, delete the pod:

kubectl delete pod curl
Posted by: Guest on January-13-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language