Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-2895

Should add nodeSelector `kubernetes.io/os: linux` to Loki pods.

    XMLWordPrintable

Details

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this update, pods created for deployments that Loki Operator created were mistakenly scheduled on nodes with non-Linux operating systems, if such nodes were available in the cluster the Operator was running in. With this update, the Operator attaches an additional node-selector to the pod definitions which only allows scheduling the pods on Linux-based nodes.
      Show
      Before this update, pods created for deployments that Loki Operator created were mistakenly scheduled on nodes with non-Linux operating systems, if such nodes were available in the cluster the Operator was running in. With this update, the Operator attaches an additional node-selector to the pod definitions which only allows scheduling the pods on Linux-based nodes.
    • Log Storage - Sprint 223, Log Storage - Sprint 224

    Description

      Description of problem:

      Loki pods don't have nodeSelector `kubernetes.io/os: linux`, these pods can be scheduled to windows workers.

      Version-Release number of selected component (if applicable):

      loki-operator.v5.5.0

      How reproducible:

      Always

      Steps to Reproduce:
      1. deploy lokistack with:

      apiVersion: loki.grafana.com/v1beta1
      kind: LokiStack
      metadata:
        name: lokistack-sample
        namespace: openshift-logging
      spec:
        managementState: Managed
        size: 1x.extra-small
        storage:
          secret:
            name: s3-secret
            type: s3
          tls:
            caName: odf-router-ca
        storageClassName: ocs-storagecluster-ceph-rbd
        tenants:
          mode: openshift-logging

      2. check loki pods
      3.

      Actual results:

      Expected results:

      Loki pods should be restricted to only deploy on linux workers. 

      Additional info: 

      Attachments

        Activity

          People

            rojacob@redhat.com Robert Jacob
            qitang@redhat.com Qiaoling Tang
            Qiaoling Tang Qiaoling Tang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: