Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-992

Fix the ClusterRole in Red Hat build of OpenTelemetry documentation for Kubernetes attributes processor.

XMLWordPrintable

      Description of the issue:

      The OpenTelemetry Kubernetes attributes processor documentation needs to be updated to fix the ClusterRole.
      https://docs.openshift.com/container-platform/4.15/observability/otel/otel-configuration-of-otel-collector.html#kubernetes-attributes-processor_otel-configuration-of-otel-collector

      We have documented the following ClusterRole:

      kind: ClusterRole
      metadata:
        name: otel-collector
      rules:
        - apiGroups: ['']
          resources: ['pods', 'namespaces']
          verbs: ['get', 'watch', 'list'] 

      While the processor requires the following role:

      apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
      metadata:
        name: otel-collector
      rules:
      - apiGroups: [""]
        resources: ["pods", "namespaces", "nodes"]
        verbs: ["get", "watch", "list"]
      - apiGroups: ["apps"]
        resources: ["replicasets"]
        verbs: ["get", "list", "watch"]

      Refer upstream doc link: 
      https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/k8sattributesprocessor/README.md#kubernetes-attributes-processor 

            rhn-support-mleonov Max Leonov
            rhn-support-ikanse Ishwar Kanse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: