Google Compute Engine VM discovery allows to use the google APIs to perform automatic discovery (similar to multicast in non hostile multicast environments). Here is a simple sample configuration:
cloud: gce: project_id: <your-google-project-id> zone: <your-zone> discovery: zen.hosts_provider: gce
The following gce settings (prefixed with
cloud.gce) are supported:
- Your Google project id (mandatory).
- helps to retrieve instances running in a given zone (mandatory). It should be one of the GCE supported zones. See also Using GCE zones.
If set to
true, client will use ExponentialBackOff policy to retry the failed http request. Defaults to
The maximum elapsed time after the client instantiating retry. If the time elapsed goes past the
max_wait, client stops to retry. A negative value means that it will wait indefinitely. Defaults to
How long the list of hosts is cached to prevent further requests to the GCE API.
0sdisables caching. A negative value will cause infinite caching. Defaults to