Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nginx 从Google ILB获取注册节点_Nginx_Google Cloud Platform_Cloud_Internal Load Balancer - Fatal编程技术网

Nginx 从Google ILB获取注册节点

Nginx 从Google ILB获取注册节点,nginx,google-cloud-platform,cloud,internal-load-balancer,Nginx,Google Cloud Platform,Cloud,Internal Load Balancer,我们有一个场景,需要获取Google ILB(内部负载平衡器)上已注册节点的列表。 早些时候,我们使用了nginx+,其中使用了restapi来获取节点。请建议是否有任何方法可以从google ILB获取节点,您可以使用google Compute Engine API查找实例。使用负载平衡器时,涉及到多个资源: +----+

我们有一个场景,需要获取Google ILB(内部负载平衡器)上已注册节点的列表。
早些时候,我们使用了nginx+,其中使用了restapi来获取节点。请建议是否有任何方法可以从google ILB获取节点,您可以使用google Compute Engine API查找实例。使用负载平衡器时,涉及到多个资源:

                                             +----+
                                         +-->+VM 1|
                                         |   +----+
                                         |
+----------+    +-------+    +--------+  |   +----+
|Forwarding+--->+Backend+--->+Instance+--+-->+VM 2|
|rule      |    |Service|    |Group   |  |   +----+
+----------+    +-------+    +--------+  |
                                         |   +----+
                                         +-->+VM 3|
                                             +----+
因此,您真正想要的是列出负载平衡器使用的实例组中的实例。您可以使用该方法来执行此操作