[discovery-gce] Align code examples and documentation (#28876)
The docs state that `_gce_` is recommended but the code sample states that `_gce:hostname_` is recommended. This aligns the code sample with the documentation. Also replace `type` with `zen.hosts_provider` as discovery.type was removed in #25080.
This commit is contained in:
parent
b1b469e30f
commit
7dcd48a0b5
|
@ -83,10 +83,10 @@ Examples:
|
|||
--------------------------------------------------
|
||||
# get the IP address from network interface 1
|
||||
network.host: _gce:privateIp:1_
|
||||
# shortcut for _gce:privateIp:0_
|
||||
network.host: _gce_
|
||||
# Using GCE internal hostname (recommended)
|
||||
# Using GCE internal hostname
|
||||
network.host: _gce:hostname_
|
||||
# shortcut for _gce:privateIp:0_ (recommended)
|
||||
network.host: _gce_
|
||||
--------------------------------------------------
|
||||
|
||||
[[discovery-gce-usage-short]]
|
||||
|
@ -227,7 +227,7 @@ cloud:
|
|||
project_id: es-cloud
|
||||
zone: europe-west1-a
|
||||
discovery:
|
||||
type: gce
|
||||
zen.hosts_provider: gce
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
|
@ -341,7 +341,7 @@ cloud:
|
|||
project_id: <your-google-project-id>
|
||||
zone: ["<your-zone1>", "<your-zone2>"]
|
||||
discovery:
|
||||
type: gce
|
||||
zen.hosts_provider: gce
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
|
@ -377,7 +377,7 @@ cloud:
|
|||
project_id: es-cloud
|
||||
zone: europe-west1-a
|
||||
discovery:
|
||||
type: gce
|
||||
zen.hosts_provider: gce
|
||||
gce:
|
||||
tags: elasticsearch, dev
|
||||
--------------------------------------------------
|
||||
|
@ -492,7 +492,7 @@ cloud:
|
|||
project_id: es-cloud
|
||||
zone: europe-west1-a
|
||||
discovery:
|
||||
type: gce
|
||||
zen.hosts_provider: gce
|
||||
--------------------------------------------------
|
||||
|
||||
Replaces `project_id` and `zone` with your settings.
|
||||
|
|
Loading…
Reference in New Issue