From afa819ad3f2a3adf8d33c09e9f4f4e5053adacd8 Mon Sep 17 00:00:00 2001 From: Max Leonov Date: Mon, 25 Mar 2024 23:02:10 +0100 Subject: [PATCH] OBSDOCS-932: Add clarifications about storage in the Tempo docs --- modules/distr-tracing-tempo-install-cli.adoc | 27 ++++++++++++------- ...str-tracing-tempo-install-web-console.adoc | 27 ++++++++++++------- 2 files changed, 35 insertions(+), 19 deletions(-) diff --git a/modules/distr-tracing-tempo-install-cli.adoc b/modules/distr-tracing-tempo-install-cli.adoc index e3479f0408c5..fe0a58bf7ef0 100644 --- a/modules/distr-tracing-tempo-install-cli.adoc +++ b/modules/distr-tracing-tempo-install-cli.adoc @@ -24,7 +24,12 @@ $ oc login --username= ---- ==== -* You are using a supported provider of object storage: link:https://www.redhat.com/en/technologies/cloud-computing/openshift-data-foundation[Red Hat OpenShift Data Foundation], link:https://min.io/[MinIO], link:https://aws.amazon.com/s3/[Amazon S3], link:https://azure.microsoft.com/en-us/products/storage/blobs/[Azure Blob Storage], link:https://cloud.google.com/storage/[Google Cloud Storage]. +* You have completed setting up the required object storage by a supported provider: link:https://www.redhat.com/en/technologies/cloud-computing/openshift-data-foundation[Red Hat OpenShift Data Foundation], link:https://min.io/[MinIO], link:https://aws.amazon.com/s3/[Amazon S3], link:https://azure.microsoft.com/en-us/products/storage/blobs/[Azure Blob Storage], link:https://cloud.google.com/storage/[Google Cloud Storage]. For more information, see "Object storage setup". ++ +[WARNING] +==== +Object storage is required and not included with the {TempoShortName}. You must choose and set up object storage by a supported provider before installing the {TempoShortName}. +==== .Procedure @@ -107,6 +112,8 @@ $ oc apply -f - << EOF EOF ---- + +For more information, see "Object storage setup". ++ -- include::snippets/distr-tracing-tempo-secret-example.adoc[] -- @@ -130,9 +137,9 @@ metadata: spec: storageSize: 1Gi storage: - secret: - name: # <1> - type: # <2> + secret: # <1> + name: # <2> + type: # <3> template: queryFrontend: jaegerQuery: @@ -142,8 +149,9 @@ spec: termination: edge type: route ---- -<1> The value of the `name` in the `metadata` of the secret. -<2> The accepted values are `azure` for Azure Blob Storage; `gcs` for Google Cloud Storage; and `s3` for Amazon S3, MinIO, or Red Hat OpenShift Data Foundation. +<1> The secret you created in step 3. +<2> The value of the `name` in the `metadata` of the secret. +<3> The accepted values are `azure` for Azure Blob Storage; `gcs` for Google Cloud Storage; and `s3` for Amazon S3, MinIO, or Red Hat OpenShift Data Foundation. + .Example of a TempoStack CR for AWS S3 and MinIO storage [source,yaml] @@ -155,7 +163,7 @@ metadata: namespace: project_of_tempostack_instance spec: storageSize: 1Gi - storage: + storage: # <1> secret: name: minio-test type: s3 @@ -166,14 +174,15 @@ spec: cpu: 2000m template: queryFrontend: - jaegerQuery: + jaegerQuery: # <2> enabled: true ingress: route: termination: edge type: route ---- -The stack deployed in this example is configured to receive Jaeger Thrift over HTTP and OpenTelemetry Protocol (OTLP), which permits visualizing the data with the Jaeger UI. +<1> In this example, the object storage was set up as one of the prerequisites, and the object storage secret was created in step 3. +<2> The stack deployed in this example is configured to receive Jaeger Thrift over HTTP and OpenTelemetry Protocol (OTLP), which permits visualizing the data with the Jaeger UI. .. Apply the customized CR by running the following command. + diff --git a/modules/distr-tracing-tempo-install-web-console.adoc b/modules/distr-tracing-tempo-install-web-console.adoc index e5af2c59ae86..d8f93861dae6 100644 --- a/modules/distr-tracing-tempo-install-web-console.adoc +++ b/modules/distr-tracing-tempo-install-web-console.adoc @@ -14,7 +14,12 @@ You can install the {TempoShortName} from the *Administrator* view of the web co * For {product-dedicated}, you must be logged in using an account with the `dedicated-admin` role. -* You are using a supported provider of object storage: link:https://www.redhat.com/en/technologies/cloud-computing/openshift-data-foundation[Red Hat OpenShift Data Foundation], link:https://min.io/[MinIO], link:https://aws.amazon.com/s3/[Amazon S3], link:https://azure.microsoft.com/en-us/products/storage/blobs/[Azure Blob Storage], link:https://cloud.google.com/storage/[Google Cloud Storage]. +* You have completed setting up the required object storage by a supported provider: link:https://www.redhat.com/en/technologies/cloud-computing/openshift-data-foundation[Red Hat OpenShift Data Foundation], link:https://min.io/[MinIO], link:https://aws.amazon.com/s3/[Amazon S3], link:https://azure.microsoft.com/en-us/products/storage/blobs/[Azure Blob Storage], link:https://cloud.google.com/storage/[Google Cloud Storage]. For more information, see "Object storage setup". ++ +[WARNING] +==== +Object storage is required and not included with the {TempoShortName}. You must choose and set up object storage by a supported provider before installing the {TempoShortName}. +==== .Procedure @@ -38,7 +43,7 @@ This installs the Operator with the default presets: . Create a project of your choice for the *TempoStack* instance that you will create in a subsequent step: go to *Home* -> *Projects* -> *Create Project*. -. In the project that you created for the *TempoStack* instance, create a secret for your object storage bucket: go to *Workloads* -> *Secrets* -> *Create* -> *From YAML*. +. In the project that you created for the *TempoStack* instance, create a secret for your object storage bucket: go to *Workloads* -> *Secrets* -> *Create* -> *From YAML*. For more information, see "Object storage setup". + -- include::snippets/distr-tracing-tempo-secret-example.adoc[] @@ -67,9 +72,9 @@ metadata: spec: storageSize: 1Gi storage: - secret: - name: # <1> - type: # <2> + secret: # <1> + name: # <2> + type: # <3> template: queryFrontend: jaegerQuery: @@ -79,8 +84,9 @@ spec: termination: edge type: route ---- -<1> The value of the `name` in the `metadata` of the secret. -<2> The accepted values are `azure` for Azure Blob Storage; `gcs` for Google Cloud Storage; and `s3` for Amazon S3, MinIO, or Red Hat OpenShift Data Foundation. +<1> The secret you created in step 3. +<2> The value of the `name` in the `metadata` of the secret. +<3> The accepted values are `azure` for Azure Blob Storage; `gcs` for Google Cloud Storage; and `s3` for Amazon S3, MinIO, or Red Hat OpenShift Data Foundation. + .Example of a TempoStack CR for AWS S3 and MinIO storage [source,yaml] @@ -92,7 +98,7 @@ metadata: namespace: spec: storageSize: 1Gi - storage: + storage: # <1> secret: name: minio-test type: s3 @@ -103,14 +109,15 @@ spec: cpu: 2000m template: queryFrontend: - jaegerQuery: + jaegerQuery: # <2> enabled: true ingress: route: termination: edge type: route ---- -The stack deployed in this example is configured to receive Jaeger Thrift over HTTP and OpenTelemetry Protocol (OTLP), which permits visualizing the data with the Jaeger UI. +<1> In this example, the object storage was set up as one of the prerequisites, and the object storage secret was created in step 3. +<2> The stack deployed in this example is configured to receive Jaeger Thrift over HTTP and OpenTelemetry Protocol (OTLP), which permits visualizing the data with the Jaeger UI. .. Select *Create*.