UNCLASSIFIED - NO CUI

PeerAuthentication name label selector bug when using loki-simple-scalable configuration

Kiali calls out a KIA0004 Warning related to there being no workloads matching the selector labels of the PeerAuthentication created when configured to use the loki-simple-scalable configuration.

The PeerAuthentication created has this matchLabels selector

spec:
  selector:
    matchLabels:
      app.kubernetes.io/instance: logging-loki
      app.kubernetes.io/name: loki

When configured to use loki-simple-scalable All the workloads have a name label of app.kubernetes.io/name=loki-simple-scalable instead of app.kubernetes.io/name: loki

loki:
      enabled: true
      values:
        loki-simple-scalable:
          enabled: true

A work around right now is to set the nameOverride value like below. This will force the PeerAuthentication object to use the correct name while configured to use loki-simple-scalable.

loki:
     values:
       # Needed to set name label in PeerAuth correct when using loki-simple-scalable
       nameOverride: loki-simple-scalable

This is only a work around, and the package templets probably need updated to appropriately set the selectorLabels when using loki-simple-scalable.

Edited by Anthony Wendt