diff --git a/charts/selenium-grid/README.md b/charts/selenium-grid/README.md index 479a3620e..3ea69fcf4 100644 --- a/charts/selenium-grid/README.md +++ b/charts/selenium-grid/README.md @@ -241,6 +241,8 @@ You can configure the Selenium Hub with this values: | `hub.subPath` | `/` | Custom sub path for the hub deployment | | `hub.extraEnvironmentVariables` | `nil` | Custom environment variables for selenium-hub | | `hub.extraEnvFrom` | `nil` | Custom environment variables for selenium taken from `configMap` or `secret`-hub | +| `hub.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod | +| `hub.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) | | `hub.resources` | `{}` | Resources for selenium-hub container | | `hub.securityContext` | `See values.yaml` | Security context for selenium-hub container | | `hub.serviceType` | `ClusterIP` | Kubernetes service type (see https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) | diff --git a/charts/selenium-grid/templates/hub-deployment.yaml b/charts/selenium-grid/templates/hub-deployment.yaml index c65e02c90..adda8b107 100644 --- a/charts/selenium-grid/templates/hub-deployment.yaml +++ b/charts/selenium-grid/templates/hub-deployment.yaml @@ -71,6 +71,10 @@ spec: envFrom: {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.hub.extraVolumeMounts }} + volumeMounts: + {{- tpl (toYaml .) $ | nindent 12 }} + {{- end }} {{- with .Values.hub.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} @@ -94,4 +98,8 @@ spec: {{- with .Values.hub.priorityClassName }} priorityClassName: {{ . }} {{- end }} + {{- with .Values.hub.extraVolumes }} + volumes: + {{- tpl (toYaml .) $ | nindent 8 }} + {{- end }} {{- end }} diff --git a/charts/selenium-grid/values.yaml b/charts/selenium-grid/values.yaml index 306f9b576..1577dd6dc 100644 --- a/charts/selenium-grid/values.yaml +++ b/charts/selenium-grid/values.yaml @@ -295,6 +295,16 @@ hub: # name: proxy-settings # - secretRef: # name: mysecret + 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 # Resources for selenium-hub container resources: {} # SecurityContext for selenium-hub container