At present, the election mode of the centre gateway is selected sequentially from the nodes with underNAT=false. However, some edge nodes have public IP and underNAT=false, which is not suitable for centre. I hope to optimize the election policy of the centre gateway.
I suggest select gateway with spec.exposedType=LoadBalancer or PublicIP as the centre.
https://github.com/openyurtio/raven/blob/c680901d4064e593c49fab445f9a29d95a73af94/pkg/networkengine/vpndriver/driver.go#L78C1-L78C1
At present, the election mode of the centre gateway is selected sequentially from the nodes with underNAT=false. However, some edge nodes have public IP and underNAT=false, which is not suitable for centre. I hope to optimize the election policy of the centre gateway. I suggest select gateway with spec.exposedType=LoadBalancer or PublicIP as the centre.