diff --git a/opentelemetry/sidecar/README.md b/opentelemetry/sidecar/README.md index 5123108..0552485 100644 --- a/opentelemetry/sidecar/README.md +++ b/opentelemetry/sidecar/README.md @@ -16,25 +16,25 @@ The collector is configured to run as a sidecar in the cluster. This means that apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: otel-collector - namespace: otel-collector-example + name: otel-collector + namespace: otel-collector-example rules: - apiGroups: ["", "config.openshift.io"] - resources: ["pods", "namespaces", "infrastructures"] - verbs: ["get", "watch", "list"] + resources: ["pods", "namespaces", "infrastructures"] + verbs: ["get", "watch", "list"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: otel-collector + name: otel-collector subjects: - kind: ServiceAccount - name: - namespace: otel-collector-example + name: otel-collector-deployment + namespace: otel-collector-example roleRef: - kind: ClusterRole - name: otel-collector - apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: otel-collector + apiGroup: rbac.authorization.k8s.io EOF ``` These resources are needed to make the `resourcedetection` work properly on OpenShift. diff --git a/tempo/noauth/README.md b/tempo/noauth/README.md new file mode 100644 index 0000000..8aa8575 --- /dev/null +++ b/tempo/noauth/README.md @@ -0,0 +1,18 @@ +# Tempo deployment + +This is an example to deploy a Tempo instance using the Tempo Operator. It doesn't have authorization nor multitenancy enabled. + +## How to run +1. Create an Object storage instance using [OpenShift Data Foundation](https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/). +1. Create an Object Storage secret with keys as follows: + ```console + kubectl create secret generic tempostack-odf \ + --from-literal=bucket="" \ + --from-literal=endpoint="https://s3.openshift-storage.svc" \ + --from-literal=access_key_id="" \ + --from-literal=access_key_secret="" + ``` +1. Deploy the Tempo instance in the `tempo-example` OpenShift Project: + ```sh + kubectl create -f tempo.yaml + ``` diff --git a/tempo/noauth/tempo.yaml b/tempo/noauth/tempo.yaml new file mode 100644 index 0000000..afc6b72 --- /dev/null +++ b/tempo/noauth/tempo.yaml @@ -0,0 +1,22 @@ +apiVersion: project.openshift.io/v1 +kind: Project +metadata: + name: tempo-example +--- +apiVersion: tempo.grafana.com/v1alpha1 +kind: TempoStack +metadata: + name: simple + namespace: tempo-example +spec: + storage: + secret: + # Name of the secret with the information to access the object storage + name: tempostack-odf + type: s3 + storageSize: 1Gi + template: + queryFrontend: + jaegerQuery: + # Enable the Jaeger UI + enabled: true