aks: determine the gateway dynamically