alibaba / kt-connect

A toolkit for Integrating with your kubernetes dev environment more efficiently
https://alibaba.github.io/kt-connect/#/
GNU General Public License v3.0
1.48k stars 230 forks source link

preview 时允许指定 port name #450

Open acrazing opened 9 months ago

acrazing commented 9 months ago

目前 ktctl preview --expose local:remote 无法指定 service 的 port name, istio 无法识别协议, 导致注入失败. 因为 istio 依赖于 service port 中的 name 前缀来探测服务提供的协议: https://istio.io/latest/docs/ops/configuration/traffic-management/protocol-selection/#explicit-protocol-selection. 或者是 appProtocol.

是否可以允许这样注入 port name 呢: ktctl preview --expose local:remote:name?