Skip to content

Commit 27ee322

Browse files
committed
Update blog post Scaling a Kubernetes Selenium Grid with KEDA
[deploy site] Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent df6fabb commit 27ee322

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

website_and_docs/content/blog/2022/scaling-grid-with-keda.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ triggers:
4949
metadata:
5050
url: 'http://selenium-grid-url-or-ip:4444/graphql'
5151
browserName: 'chrome'
52+
platformName: 'Linux'
5253
```
5354
5455
All of this gets saved as a Scaled-Object like so:
@@ -69,8 +70,17 @@ spec:
6970
triggers:
7071
- type: selenium-grid
7172
metadata:
72-
url: 'https://selenium-grid-url-or-ip:4444/graphql'
73+
url: 'http://selenium-grid-url-or-ip:4444/graphql'
7374
browserName: 'chrome'
75+
platformName: 'Linux'
76+
```
77+
78+
Send the request to Grid, for example in Python client:
79+
80+
```python
81+
options = ChromeOptions()
82+
options.set_capability('platformName', 'Linux')
83+
driver = webdriver.Remote(options=options, command_executor='http://selenium-grid-url-or-ip:4444/wd/hub')
7484
```
7585

7686
As an added bonus KEDA allows us to scale our deployments down to

0 commit comments

Comments
 (0)