我在 Kubernetes 集群中運行了幾個 pod。如何在不呼叫 LoadBalancer 服務的情況下對特定 Pod 進行 http 呼叫?
uj5u.com熱心網友回復:
...make http call to a specific Pod, without calling LoadBalancer service?
有幾種方法,嘗試kubectl port-forward <pod name> 8080:80,然后打開另一個終端,您現在可以curl localhost:8080將您的請求轉發到 pod。更多細節在這里。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/472493.html
