ソースを参照

[DOCS] Improve discovery-gce docs (#72338)

* Improve indentation of code for discovery-gce

Improve the indentation by using a indentation level of two spaces to
improve readability and enable better copy&paste experience.

* Improve docs for GCP web-console and permissions

Match the description for the GCP web-console to the current state
and change the API-permission.
There is (no longer) a permission `compute.full_control`.

* Apply suggestions from code review

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Paul Puschmann 4 年 前
コミット
c575b15bd9
1 ファイル変更14 行追加14 行削除
  1. 14 14
      docs/plugins/discovery-gce.asciidoc

+ 14 - 14
docs/plugins/discovery-gce.asciidoc

@@ -17,10 +17,10 @@ automatic discovery of seed hosts. Here is a simple sample configuration:
 --------------------------------------------------
 cloud:
   gce:
-      project_id: <your-google-project-id>
-      zone: <your-zone>
+    project_id: <your-google-project-id>
+    zone: <your-zone>
 discovery:
-      seed_providers: gce
+  seed_providers: gce
 --------------------------------------------------
 
 The following gce settings (prefixed with `cloud.gce`) are supported:
@@ -322,10 +322,10 @@ To enable discovery across more than one zone, just enter add your zone list to
 --------------------------------------------------
 cloud:
   gce:
-      project_id: <your-google-project-id>
-      zone: ["<your-zone1>", "<your-zone2>"]
+    project_id: <your-google-project-id>
+    zone: ["<your-zone1>", "<your-zone2>"]
 discovery:
-      seed_providers: gce
+  seed_providers: gce
 --------------------------------------------------
 
 
@@ -357,12 +357,12 @@ Then, define it in `elasticsearch.yml`:
 --------------------------------------------------
 cloud:
   gce:
-      project_id: es-cloud
-      zone: europe-west1-a
+    project_id: es-cloud
+    zone: europe-west1-a
 discovery:
-      seed_providers: gce
-      gce:
-            tags: elasticsearch, dev
+  seed_providers: gce
+    gce:
+      tags: elasticsearch, dev
 --------------------------------------------------
 
 [[discovery-gce-usage-port]]
@@ -432,9 +432,9 @@ Ensure the following flags are set:
 Creating with console (web)::
 +
 --
-When creating an instance using the web portal, click _Show advanced options_.
+When creating an instance using the web console, scroll down to **Identity and API access**.
 
-At the bottom of the page, under `PROJECT ACCESS`, choose `>> Compute >> Read Write`.
+Select a service account with the correct permissions or choose **Compute Engine default service account** and select **Allow default access** for **Access scopes**.
 --
 
 Creating with knife google::
@@ -450,7 +450,7 @@ knife google server create www1 \
     -Z us-central1-a \
     -i ~/.ssh/id_rsa \
     -x jdoe \
-    --gce-service-account-scopes https://www.googleapis.com/auth/compute.full_control
+    --gce-service-account-scopes https://www.googleapis.com/auth/compute
 --------------------------------------------------
 
 Or, you may use the alias: