Problems with tests on selenium hub and kubernetes

4/8/2019

I have a problem with Kubernetes and Selenium side runner. I started the Selenium hub as service on cluster k8s. I have 2 nodes, one with Firefox browser and the other one with Chrome browser, I should perform tests using selenium-side-runner starting all from local, pointing to hub selenium nodes. Unfortunately I can't really understand how or what is the right URL for each knot to perform tests.

Can you help me, please?

I attach a screenshot of my current situation.

enter image description here

Thank you very much.

-- Biagio Antonucci
docker
kubernetes
selenium-ide
webdriver

1 Answer

4/8/2019

Try using <selenium_hub_svc_name>.<selenium_namespace>:<selenium_hub_svc_port>. This will use k8s internal DNS https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#services

-- Max Lobur
Source: StackOverflow