-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Autoscaling selenium grid on kubernetes with scaledjobs #1854
Conversation
606b961
to
54d86da
Compare
To test the selenium-grid helm chart with the contribution of this PR you can get it from the repo https://jenkins-x-charts.github.io/repo. The latest version as of now is 4.12.0. |
Autoscale selenium browser nodes running in kubernetes based on the request pending in session queue using KEDA. Toggle autoscaling on/off using 'autoscalingEnabled' option in helm charts.
and make them the default KEDA scaling type install keda automatically set SE_NODE_GRID_URL and DRAIN_AFTER_SESSION_COUNT automatically Set graphqlurl automatically refactor out pod templates to named template conditionally adding preStop hook for deregistering node Signed-off-by: Mårten Svantesson <[email protected]>
54d86da
to
9d4c6ef
Compare
When setting 'autoscaling.enabled' to true, KEDA is not automatically installed.
|
Well, it works for me. What are your steps for installing selenium-grid? |
install helm chart and get value.
change "autoscaling.enabled" to true and upgrade.
|
sorry this is my new error when autoscaling is enabled, Is something wrong with my steps?
|
Well, I'm not really familiar with using the helm command directly to install stuff. I have always used a declarative approach through Jenkins X. Others use similar tools like ArgoCD. These tools work around the problems with handling CRDs that the helm commands have. That said, it's not that strange that it doesn't work since you use the upgrade command when you want a chart to be installed. Had you added As for the error |
I understand what you said, and I used 'helm install' with helm version: v3.11.3
|
helm seem to normally install subchart after current chart so trying this work around
Ah, there seem to be another limitation in helm: Sub charts are installed after the main chart. But there is a way to delay the installation of resources. I have added this now, so if you do |
While working on support for video recording I noticed how impractical it was that I had put default values in extraEnvironmentVariables. That means that things will break when overriding extraEnvironmentVariables without setting all values. I'll change that. |
dea3c07
to
04ff13d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this, @msvticket!
Due to the previous conflicts between this PR and I will squash and merge, and this will keep the authors there. Also, thank you, @prashanth-volvocars! |
@msvticket Tried to install Helm with autoscaling enabled. Keda is not getting installed. E0718 09:52:28.784838 25660 memcache.go:287] couldn't get resource list for external.metrics.k8s.io/v1beta1: the server is currently unable to handle the request |
Hey, can someone please help me with this issue? |
run |
Got below response @win5923 apiVersion: apiregistration.k8s.io/v1 group: external.metrics.k8s.io
|
The issue is not with the APIService. it might be a problem with your cluster network. |
Description
This PR builds on #1714 but adds a few features:
Motivation and Context
Compared to #1714 I want to make it easier to get started with autoscaling. The basic setup should be achieved with just setting
autoscaling.enabled
totrue
.Types of changes
Checklist