|
| 1 | +apiVersion: v1 |
| 2 | +kind: Template |
| 3 | +metadata: |
| 4 | + name: selenium-hub |
| 5 | + annotations: |
| 6 | + description: "A Selenium Grid" |
| 7 | + iconClass: "icon-selenium" |
| 8 | + tags: "selenium,hub" |
| 9 | +objects: |
| 10 | +- apiVersion: v1 |
| 11 | + kind: Service |
| 12 | + metadata: |
| 13 | + name: selenium-hub |
| 14 | + spec: |
| 15 | + selector: |
| 16 | + type: hub |
| 17 | + type: ClusterIP |
| 18 | + ports: |
| 19 | + - name: web |
| 20 | + port: 4444 |
| 21 | + targetPort: 4444 |
| 22 | + protocol: TCP |
| 23 | + - name: node |
| 24 | + port: 5555 |
| 25 | + targetPort: 5555 |
| 26 | + protocol: TCP |
| 27 | +- apiVersion: v1 |
| 28 | + kind: Pod |
| 29 | + metadata: |
| 30 | + name: selenium-hub |
| 31 | + labels: |
| 32 | + type: hub |
| 33 | + spec: |
| 34 | + containers: |
| 35 | + - env: |
| 36 | + - name: JAVA_OPTS |
| 37 | + value: ${JAVA_OPTS} |
| 38 | + - name: POOL_MAX |
| 39 | + value: ${POOL_MAX} |
| 40 | + - name: GRID_NEW_SESSION_WAIT_TIMEOUT |
| 41 | + value: ${GRID_NEW_SESSION_WAIT_TIMEOUT} |
| 42 | + - name: GRID_JETTY_MAX_THREADS |
| 43 | + value: ${GRID_JETTY_MAX_THREADS} |
| 44 | + - name: GRID_NODE_POLLING |
| 45 | + value: ${GRID_NODE_POLLING} |
| 46 | + - name: GRID_CLEAN_UP_CYCLE |
| 47 | + value: ${GRID_CLEAN_UP_CYCLE} |
| 48 | + - name: GRID_TIMEOUT |
| 49 | + value: ${GRID_TIMEOUT} |
| 50 | + - name: GRID_BROWSER_TIMEOUT |
| 51 | + value: ${GRID_BROWSER_TIMEOUT} |
| 52 | + - name: GRID_MAX_SESSION |
| 53 | + value: ${GRID_MAX_SESSION} |
| 54 | + - name: GRID_UNREGISTER_IF_STILL_DOWN_AFTER |
| 55 | + value: ${GRID_UNREGISTER_IF_STILL_DOWN_AFTER} |
| 56 | + image: selenium/hub |
| 57 | + name: master |
| 58 | + ports: |
| 59 | + - containerPort: 4444 |
| 60 | + protocol: TCP |
| 61 | +parameters: |
| 62 | + - name: JAVA_OPTS |
| 63 | + description: Options to pass to the java command |
| 64 | + value: "-Xmx512m" |
| 65 | + - name: POOL_MAX |
| 66 | + description: Max thread count for incoming and outgoing connections |
| 67 | + value: "30000" |
| 68 | + - name: GRID_NEW_SESSION_WAIT_TIMEOUT |
| 69 | + description: The timeout to wait for new sessions |
| 70 | + value: "30" |
| 71 | + - name: GRID_JETTY_MAX_THREADS |
| 72 | + description: Max Threads for Jetty server |
| 73 | + value: "100" |
| 74 | + - name: GRID_NODE_POLLING |
| 75 | + description: Node Polling setting |
| 76 | + value: "150" |
| 77 | + - name: GRID_CLEAN_UP_CYCLE |
| 78 | + description: How long to wait until cleanup on nodes |
| 79 | + value: "300" |
| 80 | + - name: GRID_TIMEOUT |
| 81 | + description: The timeout for the grid |
| 82 | + value: "300" |
| 83 | + - name: GRID_BROWSER_TIMEOUT |
| 84 | + description: The timeout for the browser |
| 85 | + value: "30" |
| 86 | + - name: GRID_MAX_SESSION |
| 87 | + description: How many sessions max |
| 88 | + value: "3" |
| 89 | + - name: GRID_UNREGISTER_IF_STILL_DOWN_AFTER |
| 90 | + description: Time to wait before unregistering nodes |
| 91 | + value: "500" |
| 92 | +labels: |
| 93 | + selenium-hub: master |
0 commit comments