How to expose dynamic ports using Kubernetes service on Google Container Engine?

前端 未结 1 909
失恋的感觉
失恋的感觉 2021-01-15 09:11

I am trying to connect to a Docker container on Google Container Engine(GKE) from my local machine through the internet by TCP protocol. So far I have used Kubernetes servic

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-15 09:17

    I don't think there is currently a better solution than what you are doing. There is already a related issue, kubernetes issue 1802, about having multiple ports per service. I mentioned your requirements on that issue. You might want to follow up there with more information about your use case, such as what program you are running (if it is publicly available), and whether the dynamic ports come from a specific contiguous range.

    0 讨论(0)
提交回复
热议问题