-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Splunk Operator: Autoscaling Issue #1352
Comments
I'm not entirely sure if this will mess things up, but I got the autoscaling to work by pointing the HPA at the IndexerCluster's downstream statefulset:
Is this correct? |
Going down the rabbit hole... It looks like my HPA isn't gathering metrics for the target:
Additional digging into the metric-server shows lots of scrape errors:
I think this is related to a recent issue posted in the official metrics-server repo, and an associated PR. I'm not totally sure, though... Other HPA's in my EKS clusters seem to work fine... Edit: To clarify, the HPA sees the targets data when I point it towards the statefulset, but not when I point it towards |
Adding more info...
is |
I tried
|
I worked with Splunk support on this, and they suggest that despite Kubernetes docs saying otherwise, you must hardcode Since I use ArgoCD, I had to set ignoreDifferences on the CR to stop it from showing up as out of sync. |
CSPL-2819 |
Please select the type of request
Bug
Tell us more
Describe the Problem
I'm following the details here for pod autoscaling. It seems that
spec.replicas
is a mandatory field, but with the HorizontalPodAutoscaler docs recommend that you removespec.replicas
from the target manifest.When an HPA is enabled, it is recommended that the value of spec.replicas of the Deployment and / or StatefulSet be removed from their manifest(s).
Error I receive when I remove
spec.replicas
:the HPA controller was unable to get the target's current scale: Internal error occurred: the spec replicas field ".spec.replicas" does not exist
Expected behavior
One should be able to remove
spec.replicas
from the Splunk CRindexerclusters.enterprise.splunk.com
(and probably other CRs...) to allow HorizontalPodAutoscaler to manage thespec.replicas
.Splunk setup on K8S
AWS EKS v1.29, with Splunk Operator 2.5.2.
Last thing to note, I'm using
autoscaling/v2
apiVersionReproduction/Testing steps
idx-cluster.yaml:
HorizontalPodAutoscaler yaml:
K8s environment
k8s v1.29
The text was updated successfully, but these errors were encountered: