Skip to content

Commit 56f8b45

Browse files
rubenvp8510max-cx
authored andcommitted
OBSDOCS-1618: Document IBM Cloud Object Storage for Tempo
Signed-off-by: Ruben Vargas <[email protected]>
1 parent 8dd3c8d commit 56f8b45

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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.

observability/distr_tracing/distr_tracing_tempo/distr-tracing-tempo-installing.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ include::modules/distr-tracing-tempo-object-storage-setup-aws-sts-install.adoc[l
7171
* xref:../../../authentication/identity_providers/configuring-oidc-identity-provider.adoc#configuring-oidc-identity-provider[Configuring an OpenID Connect identity provider]
7272
* link:https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html[Identify AWS resources with Amazon Resource Names (ARNs)]
7373

74+
include::modules/distr-tracing-tempo-object-storage-setup-ibm-storage.adoc[leveloffset=+2]
75+
76+
[role="_additional-resources"]
77+
.Additional resources
78+
79+
* xref:../../../cli_reference/openshift_cli/getting-started-cli.adoc#cli-getting-started[Getting started with the OpenShift CLI]
80+
* link:https://cloud.ibm.com/docs/cli?topic=cli-getting-started[Getting started with the {ibm-cloud-title} CLI] ({ibm-cloud-title} Docs)
81+
* link:https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-provision[Choosing a plan and creating an instance] ({ibm-cloud-title} Docs)
82+
* link:https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-getting-started-cloud-object-storage&q=credential&tags=cloud-object-storage&offset=10#getting-started[Getting started with {ibm-cloud-title} Object Storage: Before you begin] ({ibm-cloud-title} Docs)
83+
7484
[role="_additional-resources"]
7585
[id="additional-resources_dist-tracing-tempo-installing"]
7686
== Additional resources

0 commit comments

Comments
 (0)