# To execute this yml file use this command in your local kubernetes environment `kubectl apply -f k8s-testproject.yaml
#***************************************
#SELENIUM STANDALONE CHROME
#***************************************
name: selenium-standalone-chrome
app: selenium-standalone-chrome
app: selenium-standalone-chrome
name: selenium-standalone-chrome
app: selenium-standalone-chrome
app: selenium-standalone-chrome
name: selenium-standalone-chrome
app: selenium-standalone-chrome
name: selenium-standalone-chrome
- image: selenium/standalone-chrome
emptyDir: { "medium": "Memory" }
#***************************************
#SELENIUM STANDALONE FIREFOX
#***************************************
name: selenium-standalone-firefox
app: selenium-standalone-firefox
app: selenium-standalone-firefox
name: selenium-standalone-firefox
app: selenium-standalone-firefox
app: selenium-standalone-firefox
name: selenium-standalone-firefox
app: selenium-standalone-firefox
name: selenium-standalone-firefox
- image: selenium/standalone-firefox
emptyDir: { "medium": "Memory" }
#***************************************
#***************************************
- name: TP_AGENT_ALIAS # OPTIONAL variable that can be used for registering the agent with a custom alias.
value: "My First k8s Agent"
- name: TP_API_KEY # The API key can be created in the TestProject Web Application (as described https://docs.testproject.io/testproject-integrations/integration-with-jenkins#creating-a-testproject-api-key).
name: testproject-secrets
name: testproject-secrets
- name: TP_SDK_PORT # Agent will listen on port 8686 for SDK connections
image: testproject/agent:latest
livenessProbe: # The chrome pod take about ~30 sec to be ready. We need to start agent registration ONLY when booth Firefox and Chrome is available.
- curl -sSL http://chrome:4444/wd/hub/status | jq -r '.value.ready' | grep "true" || exit 1