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

Lokistack example missing the serviceAccount

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • Logging 6.0, Logging 6.1
    • Logging
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Section: Upgrading to Logging 6.0
      URL: https://docs.openshift.com/container-platform/4.16/observability/logging/logging-6.0/log6x-upgrading-to-6.html#red-hat-managed-lokistack
      Description
      The Red Hat Managed Lokistack example misses to set the "serviceAccount" field.

      The current example is:

      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: instance
        namespace: openshift-logging
      spec:
        outputs:
        - name: default-lokistack
          type: lokiStack
          lokiStack:
            target:
              name: lokistack-dev
              namespace: openshift-logging
            authentication:
              token:
                from: serviceAccount
      [...]
      

      And it's misses the field ".spec.serviceAccount: <serviceAccountName>". A valid example should be like:

      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: instance
        namespace: openshift-logging
      spec:
        serviceAccount:
          name: collector
        outputs:
        - name: default-lokistack
          type: lokiStack
          lokiStack:
            target:
              name: lokistack-dev
              namespace: openshift-logging
            authentication:
              token:
                from: serviceAccount
      [...]
      

              rhn-support-pripatil Prithviraj Patil
              rhn-support-ocasalsa Oscar Casal Sanchez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: