-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autoscaling selenium grid on kubernetes
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.
- Loading branch information
1 parent
b1d15ef
commit 7e4f215
Showing
6 changed files
with
134 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if and .Values.chromeNode.enabled .Values.chromeNode.autoscalingEnabled }} | ||
apiVersion: keda.sh/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: selenium-grid-chrome-scaledobject | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
deploymentName: {{ template "seleniumGrid.chromeNode.fullname" . }} | ||
spec: | ||
maxReplicaCount: {{ .Values.chromeNode.maxReplicaCount }} | ||
scaleTargetRef: | ||
name: {{ template "seleniumGrid.chromeNode.fullname" . }} | ||
triggers: | ||
- type: selenium-grid | ||
{{- with .Values.chromeNode.hpa }} | ||
metadata: {{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if and .Values.edgeNode.enabled .Values.edgeNode.autoscalingEnabled }} | ||
apiVersion: keda.sh/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: selenium-grid-edge-scaledobject | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
deploymentName: {{ template "seleniumGrid.edgeNode.fullname" . }} | ||
spec: | ||
maxReplicaCount: {{ .Values.edgeNode.maxReplicaCount }} | ||
scaleTargetRef: | ||
name: {{ template "seleniumGrid.edgeNode.fullname" . }} | ||
triggers: | ||
- type: selenium-grid | ||
{{- with .Values.edgeNode.hpa }} | ||
metadata: {{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if and .Values.firefoxNode.enabled .Values.firefoxNode.autoscalingEnabled }} | ||
apiVersion: keda.sh/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: selenium-grid-firefox-scaledobject | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
deploymentName: {{ template "seleniumGrid.firefoxNode.fullname" . }} | ||
spec: | ||
maxReplicaCount: {{ .Values.firefoxNode.maxReplicaCount }} | ||
scaleTargetRef: | ||
name: {{ template "seleniumGrid.firefoxNode.fullname" . }} | ||
triggers: | ||
- type: selenium-grid | ||
{{- with .Values.firefoxNode.hpa }} | ||
metadata: {{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters