📜  如何在 kubernetes 的 pod 内卷曲服务? - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:19.347000             🧑  作者: Mango

代码示例1
# 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