kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel
https://kmesh.net
Apache License 2.0
362 stars 46 forks source link

The use of KmeshWaypointPort needs to be optimized #370

Open kwb0523 opened 1 month ago

kwb0523 commented 1 month ago

What would you like to be added: When storing port information, it is currently determined whether the corresponding service name contains the "waypoint" keyword. If so, the corresponding target port will be replaced with KmeshWaypointPort, so that traffic management in data plane can switch to kmesh waypoint. However, the current method of judging whether a service is a waypoint based on the "waypoint" field has a mismatch defect. Therefore, a better way to use KmeshWaypointPort or to change the waypoint port information in the environment in some way is needed, maybe we can use a cmdline tool like kmeshctl to implement it. Why is this needed: avoiding potential issues.