The invention provides a cross-cluster application
access method, a gateway device and a related product, which can realize communication between cross-cluster applications and reduce resource occupation of a
network agent component in a cluster. The method is applied to the multi-cluster
system, the multi-cluster
system comprises an
application layer gateway, a first K8s cluster and a second K8s cluster, the first K8s cluster comprises a
network agent component and a first application, and the second K8s cluster comprises a second application. Specifically, the
network agent component intercepts an access request sent by a first application, and forwards the access request according to a routing rule matched with the request. Wherein when the routing rule indicates to execute the
application layer processing on the access request, the access request is sent to the
application layer gateway, so that the application layer gateway executes the application layer
processing on the access request, and the processed access request is forwarded to the second application. And when the routing rule indicates that the
transport layer processing is performed on the access request, sending the access request to the second application.