|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +//* observability/distr_tracing/distr_tracing_tempo/distr-tracing-tempo-installing.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="distr-tracing-tempo-object-storage-setup-ibm-storage_{context}"] |
| 7 | += Setting up {ibm-cloud-title} Object Storage |
| 8 | + |
| 9 | +You can set up {ibm-cloud-title} Object Storage by using the {oc-first}. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have installed the latest version of {oc-first}. For more information, see "Getting started with the OpenShift CLI" in _Configure: CLI tools_. |
| 14 | +
|
| 15 | +* You have installed the latest version of {ibm-cloud-title} Command Line Interface (`ibmcloud`). For more information, see "Getting started with the {ibm-cloud-title} CLI" in _{ibm-cloud-title} Docs_. |
| 16 | +
|
| 17 | +* You have configured {ibm-cloud-title} Object Storage. For more information, see "Choosing a plan and creating an instance" in _{ibm-cloud-title} Docs_. |
| 18 | +
|
| 19 | +** You have an {ibm-cloud-title} Platform account. |
| 20 | +** You have ordered an {ibm-cloud-title} Object Storage plan. |
| 21 | +** You have created an instance of {ibm-cloud-title} Object Storage. |
| 22 | + |
| 23 | +.Procedure |
| 24 | + |
| 25 | +. On {ibm-cloud-title}, create an object store bucket. |
| 26 | + |
| 27 | +. On {ibm-cloud-title}, create a service key for connecting to the object store bucket by running the following command: |
| 28 | ++ |
| 29 | +[source,terminal] |
| 30 | +---- |
| 31 | +$ ibmcloud resource service-key-create <tempo_bucket> Writer \ |
| 32 | +--instance-name <tempo_bucket> --parameters '{"HMAC":true}' |
| 33 | +---- |
| 34 | + |
| 35 | +. On {ibm-cloud-title}, create a secret with the bucket credentials by running the following command: |
| 36 | ++ |
| 37 | +[source,terminal] |
| 38 | +---- |
| 39 | +$ oc -n <namespace> create secret generic <ibm_cos_secret> \ |
| 40 | + --from-literal=bucket="<tempo_bucket>" \ |
| 41 | + --from-literal=endpoint="<ibm_bucket_endpoint>" \ |
| 42 | + --from-literal=access_key_id="<ibm_bucket_access_key>" \ |
| 43 | + --from-literal=access_key_secret="<ibm_bucket_secret_key>" |
| 44 | +---- |
| 45 | + |
| 46 | +. On {product-title}, create an object storage secret with keys as follows: |
| 47 | ++ |
| 48 | +[source,yaml] |
| 49 | +---- |
| 50 | +apiVersion: v1 |
| 51 | +kind: Secret |
| 52 | +metadata: |
| 53 | + name: <ibm_cos_secret> |
| 54 | +stringData: |
| 55 | + bucket: <tempo_bucket> |
| 56 | + endpoint: <ibm_bucket_endpoint> |
| 57 | + access_key_id: <ibm_bucket_access_key> |
| 58 | + access_key_secret: <ibm_bucket_secret_key> |
| 59 | +type: Opaque |
| 60 | +---- |
| 61 | + |
| 62 | +. On {product-title}, set the storage section in the `TempoStack` custom resource as follows: |
| 63 | ++ |
| 64 | +[source,yaml] |
| 65 | +---- |
| 66 | +apiVersion: tempo.grafana.com/v1alpha1 |
| 67 | +kind: TempoStack |
| 68 | +# ... |
| 69 | +spec: |
| 70 | +# ... |
| 71 | + storage: |
| 72 | + secret: |
| 73 | + name: <ibm_cos_secret> # <1> |
| 74 | + type: s3 |
| 75 | +# ... |
| 76 | +---- |
| 77 | +<1> Name of the secret that contains the {ibm-cloud-title} Storage access and secret keys. |
0 commit comments