Closed tomerle03 closed 1 month ago
Could you also provide the ScaledObject yaml?
Could you also provide the ScaledObject yaml?
apiVersion: keda.sh/v1alpha1
kind: Scaledobject
metadata:
labels:
scaledobject.keda.sh/name: Scaledobject_NAME
name: Scaledobject_NAME
namespace: NAMESPACE
spec:
cooldownPeriod: 180
maxReplicaCount: 20
minReplicaCount: 2
pollingInterval: 5
scaleTargetRef:
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
name: DeploymentConfig_NAME
triggers:
- authenticationRef:
name: AUTHREF_NAME
metadata:
addresses: 'https://eck.example.com:443'
index: index
parameters: example
searchTemplateName: desired_pods_count
targetValue: '1'
unsafeSs1: 'true'
username: user
valueLocation: aggregations.0.buckets.0.pods_count.value
type: elasticsearch
could you paste here output of kubectl get scaledobject -oyaml -n NAMESPACE
?
And also more logs, as the attached are not correctly pasted, see this part: "resource": "/, Kind=", "
2024-05-20T14:53:52Z ERROR scale_resolvers target resource doesn't exist {"scaledobject.Namespace": "NAMESPACE" , "scaledobject.Name": "example-scaledobject", "resource": "/, Kind=", "name": "DEPLOYMENTCONFIG_NAME",
"error": "Obiect 'Kind' is missing
in 'unstructured object has no kind'"}
could you paste here output of
kubectl get scaledobject -oyaml -n NAMESPACE
?And also more logs, as the attached are not correctly pasted, see this part:
"resource": "/, Kind=", "
2024-05-20T14:53:52Z ERROR scale_resolvers target resource doesn't exist {"scaledobject.Namespace": "NAMESPACE" , "scaledobject.Name": "example-scaledobject", "resource": "/, Kind=", "name": "DEPLOYMENTCONFIG_NAME", "error": "Obiect 'Kind' is missing in 'unstructured object has no kind'"}
About the first question, do you need the status?
And secondly, the paste is correct I just checked. That's what weird.
Yes, full status.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed due to inactivity.
Report
A scaledobject that causing the keda operator pod to reset
Expected Behavior
The scaledobject will not cause the keda operator pod to restart and affect the whole cluster
Actual Behavior
We are using Openshift in version 4.12 and keda in version 2.11. We have created a scaledobject that will sample Eck and will scale a DeploymentConfig in the cluster. Somehow this scaledobject caused the operator to restart a lot
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.11.2
Kubernetes Version
< 1.27
Platform
Red Hat OpenShift
Scaler Details
ElasticSearch
Anything else?
No response