-
Bug
-
Resolution: Done-Errata
-
Critical
-
None
-
premerge
-
Critical
-
None
-
Approved
-
False
-
Description of problem:
scaledobject can not get ready due to : x509: certificate signed by unknown authority
Version-Release number of selected component (if applicable):
2.10.1-227
How reproducible:
Steps to Reproduce:
1. Deploy CMA Keda 2.10.1-227 from stage
2. Create KedaController with default config
3. Create scaledobject
$ cat scaledobject.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: name: prometheus-scaledobject spec: scaleTargetRef: name: test-app minReplicaCount: 1 maxReplicaCount: 10 pollingInterval: 5 cooldownPeriod: 10 triggers: - type: prometheus metadata: serverAddress: https://thanos-querier.openshift-monitoring.svc.cluster.local:9092 namespace: kedatest # replace <NAMESPACE> metricName: http_requests_total threshold: '5' query: sum(rate(http_requests_total{job="test-app"}[1m])) authModes: "bearer" authenticationRef: name: keda-trigger-auth-prometheus
Actual results:
% oc describe scaledobject prometheus-scaledobject Scale Target Kind: apps/v1.Deployment Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal KEDAScalersStarted 98s keda-operator Started scalers watch Warning KEDAScalerFailed 98s keda-operator Get "https://thanos-querier.openshift-monitoring.svc.cluster.local:9092/api/v1/query?query=sum%28rate%28http_requests_total%7Bjob%3D%22test-app%22%7D%5B1m%5D%29%29&time=2023-05-25T07:29:35Z&namespace=kedatest": x509: certificate signed by unknown authority Warning KEDAScalerFailed 93s keda-operator Get "https://thanos-querier.openshift-monitoring.svc.cluster.local:9092/api/v1/query?query=sum%28rate%28http_requests_total%7Bjob%3D%22test-app%22%7D%5B1m%5D%29%29&time=2023-05-25T07:29:40Z&namespace=kedatest": x509: certificate signed by unknown authority
Expected results:
scaledobject can get ready
$ oc get scaledobject prometheus-scaledobject NAME SCALETARGETKIND SCALETARGETNAME MIN MAX TRIGGERS AUTHENTICATION READY ACTIVE FALLBACK AGE prometheus-scaledobject apps/v1.Deployment test-app 1 10 prometheus keda-trigger-auth-prometheus True False False