Skip to content

Commit

Permalink
Add ability to mount extra volumes into nodes pods (#1585)
Browse files Browse the repository at this point in the history
* Add ability to mount extra volumes into nodes pods

* release 0.5.0
  • Loading branch information
den-is authored Jun 15, 2022
1 parent b0c8118 commit 5d143a8
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 2 deletions.
6 changes: 5 additions & 1 deletion charts/selenium-grid/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this helm chart will be documented in this file.

## :heavy_check_mark: 0.5.0

### Added
- Added ability to mount arbitrary volumes into browser nodes

## :heavy_check_mark: 0.4.2

### Changed
Expand All @@ -12,7 +17,6 @@ All notable changes to this helm chart will be documented in this file.
### Changed
- Update image tag to 4.2.1-20220608


## :heavy_check_mark: 0.4.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion charts/selenium-grid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: selenium-grid
description: A Helm chart for creating a Selenium Grid Server in Kubernetes
type: application
version: 0.4.2
version: 0.5.0
appVersion: 4.2.2-20220609
6 changes: 6 additions & 0 deletions charts/selenium-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ This table contains the configuration parameters of the chart and their default
| `chromeNode.service.type` | `ClusterIP` | Service type |
| `chromeNode.service.annotations` | `{}` | Custom annotations for service |
| `chromeNode.dshmVolumeSizeLimit` | `1Gi` | Size limit for DSH volume mounted in container (if not set, default is "1Gi") |
| `chromeNode.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod |
| `chromeNode.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) |
| `firefoxNode.enabled` | `true` | Enable firefox nodes |
| `firefoxNode.replicas` | `1` | Number of firefox nodes |
| `firefoxNode.imageName` | `selenium/node-firefox` | Image of firefox nodes |
Expand All @@ -104,6 +106,8 @@ This table contains the configuration parameters of the chart and their default
| `firefoxNode.service.type` | `ClusterIP` | Service type |
| `firefoxNode.service.annotations` | `{}` | Custom annotations for service |
| `firefoxNode.dshmVolumeSizeLimit` | `1Gi` | Size limit for DSH volume mounted in container (if not set, default is "1Gi") |
| `firefoxNode.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod |
| `firefoxNode.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) |
| `edgeNode.enabled` | `true` | Enable edge nodes |
| `edgeNode.replicas` | `1` | Number of edge nodes |
| `edgeNode.imageName` | `selenium/node-edge` | Image of edge nodes |
Expand All @@ -123,6 +127,8 @@ This table contains the configuration parameters of the chart and their default
| `edgeNode.service.type` | `ClusterIP` | Service type |
| `edgeNode.service.annotations` | `{}` | Custom annotations for service |
| `edgeNode.dshmVolumeSizeLimit` | `1Gi` | Size limit for DSH volume mounted in container (if not set, default is "1Gi") |
| `edgeNode.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod |
| `edgeNode.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) |
| `customLabels` | `{}` | Custom labels for k8s resources |


Expand Down
6 changes: 6 additions & 0 deletions charts/selenium-grid/templates/chrome-node-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
volumeMounts:
- name: dshm
mountPath: /dev/shm
{{- if .Values.chromeNode.extraVolumeMounts }}
{{- toYaml .Values.chromeNode.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .Values.chromeNode.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
Expand All @@ -67,4 +70,7 @@ spec:
emptyDir:
medium: Memory
sizeLimit: {{ default "1Gi" .Values.chromeNode.dshmVolumeSizeLimit }}
{{- if .Values.chromeNode.extraVolumes }}
{{ toYaml .Values.chromeNode.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/selenium-grid/templates/edge-node-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
volumeMounts:
- name: dshm
mountPath: /dev/shm
{{- if .Values.edgeNode.extraVolumeMounts }}
{{- toYaml .Values.edgeNode.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .Values.edgeNode.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
Expand All @@ -67,4 +70,7 @@ spec:
emptyDir:
medium: Memory
sizeLimit: {{ default "1Gi" .Values.edgeNode.dshmVolumeSizeLimit }}
{{- if .Values.edgeNode.extraVolumes }}
{{ toYaml .Values.edgeNode.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/selenium-grid/templates/firefox-node-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
volumeMounts:
- name: dshm
mountPath: /dev/shm
{{- if .Values.firefoxNode.extraVolumeMounts }}
{{- toYaml .Values.firefoxNode.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .Values.firefoxNode.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
Expand All @@ -67,4 +70,7 @@ spec:
emptyDir:
medium: Memory
sizeLimit: {{ default "1Gi" .Values.firefoxNode.dshmVolumeSizeLimit }}
{{- if .Values.firefoxNode.extraVolumes }}
{{ toYaml .Values.firefoxNode.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
33 changes: 33 additions & 0 deletions charts/selenium-grid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,17 @@ chromeNode:
# Size limit for DSH volume mounted in container (if not set, default is "1Gi")
dshmVolumeSizeLimit: 1Gi

extraVolumeMounts: []
# - name: my-extra-volume
# mountPath: /home/seluser/Downloads

extraVolumes: []
# - name: my-extra-volume
# emptyDir: {}
# - name: my-extra-volume-from-pvc
# persistentVolumeClaim:
# claimName: my-pv-claim

# Configuration for firefox nodes
firefoxNode:
# Enable firefox nodes
Expand Down Expand Up @@ -372,6 +383,17 @@ firefoxNode:
# Size limit for DSH volume mounted in container (if not set, default is "1Gi")
dshmVolumeSizeLimit: 1Gi

extraVolumeMounts: []
# - name: my-extra-volume
# mountPath: /home/seluser/Downloads

extraVolumes: []
# - name: my-extra-volume
# emptyDir: {}
# - name: my-extra-volume-from-pvc
# persistentVolumeClaim:
# claimName: my-pv-claim

# Configuration for edge nodes
edgeNode:
# Enable edge nodes
Expand Down Expand Up @@ -433,5 +455,16 @@ edgeNode:
# Size limit for DSH volume mounted in container (if not set, default is "1Gi")
dshmVolumeSizeLimit: 1Gi

extraVolumeMounts: []
# - name: my-extra-volume
# mountPath: /home/seluser/Downloads

extraVolumes: []
# - name: my-extra-volume
# emptyDir: {}
# - name: my-extra-volume-from-pvc
# persistentVolumeClaim:
# claimName: my-pv-claim

# Custom labels for k8s resources
customLabels: {}

0 comments on commit 5d143a8

Please sign in to comment.