Skip to content

Commit

Permalink
Update blog post Scaling a Kubernetes Selenium Grid with KEDA
Browse files Browse the repository at this point in the history
[deploy site]

Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Dec 26, 2024
1 parent df6fabb commit 27ee322
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion website_and_docs/content/blog/2022/scaling-grid-with-keda.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ triggers:
metadata:
url: 'http://selenium-grid-url-or-ip:4444/graphql'
browserName: 'chrome'
platformName: 'Linux'
```
All of this gets saved as a Scaled-Object like so:
Expand All @@ -69,8 +70,17 @@ spec:
triggers:
- type: selenium-grid
metadata:
url: 'https://selenium-grid-url-or-ip:4444/graphql'
url: 'http://selenium-grid-url-or-ip:4444/graphql'
browserName: 'chrome'
platformName: 'Linux'
```
Send the request to Grid, for example in Python client:
```python
options = ChromeOptions()
options.set_capability('platformName', 'Linux')
driver = webdriver.Remote(options=options, command_executor='http://selenium-grid-url-or-ip:4444/wd/hub')
```

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

0 comments on commit 27ee322

Please sign in to comment.