Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-25873

Servicemonitor for Keda Operator is incorrectly configured for keda-metrics-apiserver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 4.14
    • Pod Autoscaler
    • None
    • Moderate
    • No
    • 3
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The servicemonitor named keda-metrics-apiserver is configured with incorrect port information after the CMA operator upgraded from v2.10.1-267 to v2.11.2-322.

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

      2.11.2-322

      How reproducible:

      100%

      Steps to Reproduce:

          1. Upgrade operator from v2.10.1-267 to latest version.
          2. Check if keda-metrics-apiserver shows in available targets
          3.
          

      Actual results:

      The target associated with keda-metrics-apiserver service went missing.

      Expected results:

      The target keda-metrics-apiserver should be available.

      Additional info:

      Ports configured in service "keda-metrics-apiserver"
      
      ==========
          ports:
          - name: https
            port: 443
            protocol: TCP
            targetPort: 6443
          - name: metrics
            port: 8080
            protocol: TCP
            targetPort: 8080
      ==========
      
      YAML spec of servicemonitor "keda-metrics-apiserver"
      ==========
      spec:
       endpoints:
        - interval: 60s
         port: http
       namespaceSelector:
        any: false
       selector:
        matchLabels:
         app.kubernetes.io/name: keda-metrics-apiserver
      ==========
      
      - Tried deleting "keda-metrics-apiserver" servicemonitor and it doesn't help.
      - The issue is not observed when the operator is deployed from the scratch.

            jkyros@redhat.com John Kyros
            rhn-support-dgautam Dhruv Gautam
            Sunil Choudhary Sunil Choudhary
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: