Created
July 7, 2020 14:22
-
-
Save roberto-mardeni/1fd4db19533781d5e1759b2128410984 to your computer and use it in GitHub Desktop.
Selenium on Azure Container Instances Sample
This file contains hidden or 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
apiVersion: 2018-10-01 | |
location: eastus | |
name: selenium | |
properties: | |
containers: | |
- name: selenium-hub | |
properties: | |
environmentVariables: | |
- name: 'JAVA_TOOL_OPTIONS' | |
value: '-Xmx800m' | |
- name: 'SE_OPTS' | |
secureValue: '' | |
- name: 'GRID_HUB_PORT' | |
secureValue: '4444' | |
image: selenium/hub:3.141.59 | |
resources: | |
requests: | |
cpu: .5 | |
memoryInGb: 1.5 | |
ports: | |
- port: 4444 | |
livenessProbe: | |
httpGet: | |
path: /wd/hub/status | |
port: 4444 | |
initialDelaySeconds: 30 | |
periodSeconds: 5 | |
timeoutSeconds: 1 | |
readinessProbe: | |
httpGet: | |
path: /wd/hub/status | |
port: 4444 | |
initialDelaySeconds: 15 | |
timeoutSeconds: 1 | |
- name: chrome-node-1 | |
properties: | |
environmentVariables: | |
- name: 'HUB_PORT_4444_TCP_ADDR' | |
value: 'localhost' | |
- name: 'HUB_PORT_4444_TCP_PORT' | |
secureValue: '4444' | |
- name: 'NODE_PORT' | |
secureValue: '5555' | |
- name: 'JAVA_TOOL_OPTIONS' | |
secureValue: '-Xmx900m' | |
- name: 'SE_OPTS' | |
secureValue: '' | |
image: selenium/node-chrome:3.141.59 | |
resources: | |
requests: | |
cpu: .5 | |
memoryInGb: 1 | |
volumeMounts: | |
- mountPath: /dev/shm | |
name: dhsm | |
- name: chrome-node-2 | |
properties: | |
environmentVariables: | |
- name: 'HUB_PORT_4444_TCP_ADDR' | |
value: 'localhost' | |
- name: 'HUB_PORT_4444_TCP_PORT' | |
secureValue: '4444' | |
- name: 'NODE_PORT' | |
secureValue: '5556' | |
- name: 'JAVA_TOOL_OPTIONS' | |
secureValue: '-Xmx900m' | |
- name: 'SE_OPTS' | |
secureValue: '' | |
image: selenium/node-chrome:3.141.59 | |
resources: | |
requests: | |
cpu: .5 | |
memoryInGb: 1 | |
volumeMounts: | |
- mountPath: /dev/shm | |
name: dhsm | |
- name: chrome-node-3 | |
properties: | |
environmentVariables: | |
- name: 'HUB_PORT_4444_TCP_ADDR' | |
value: 'localhost' | |
- name: 'HUB_PORT_4444_TCP_PORT' | |
secureValue: '4444' | |
- name: 'NODE_PORT' | |
secureValue: '5557' | |
- name: 'JAVA_TOOL_OPTIONS' | |
secureValue: '-Xmx900m' | |
- name: 'SE_OPTS' | |
secureValue: '' | |
image: selenium/node-chrome:3.141.59 | |
resources: | |
requests: | |
cpu: .5 | |
memoryInGb: 1 | |
volumeMounts: | |
- mountPath: /dev/shm | |
name: dhsm | |
- name: chrome-node-4 | |
properties: | |
environmentVariables: | |
- name: 'HUB_PORT_4444_TCP_ADDR' | |
value: 'localhost' | |
- name: 'HUB_PORT_4444_TCP_PORT' | |
secureValue: '4444' | |
- name: 'NODE_PORT' | |
secureValue: '5558' | |
- name: 'JAVA_TOOL_OPTIONS' | |
secureValue: '-Xmx900m' | |
- name: 'SE_OPTS' | |
secureValue: '' | |
image: selenium/node-chrome:3.141.59 | |
resources: | |
requests: | |
cpu: .5 | |
memoryInGb: 1 | |
volumeMounts: | |
- mountPath: /dev/shm | |
name: dhsm | |
volumes: | |
- emptyDir: {} | |
name: dhsm | |
osType: Linux | |
ipAddress: | |
type: Public | |
ports: | |
- protocol: tcp | |
port: 4444 | |
tags: null | |
type: Microsoft.ContainerInstance/containerGroups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment