我想安装 selenium 网格4在kubernetes。我是新的这一点。任何人都可以分享掌舵图表或清单或安装步骤或任何东西。我找不到任何东西。
uwopmtnx1#
您可以在以下位置找到Selenium Docker集线器图像:https://hub.docker.com/layers/selenium/hub/4.0.0-alpha-6-20200730YAML示例
apiVersion: apps/v1 kind: Deployment metadata: name: selenium-hub spec: selector: matchLabels: app: selenium-hub strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 template: metadata: labels: app: selenium-hub spec: containers: - name: selenium-hub image: selenium/hub:3.141.59-20200515 resources: limits: memory: "1000Mi" cpu: "500m" ports: - containerPort: 4444 livenessProbe: httpGet: path: /wd/hub/status port: 4444 initialDelaySeconds: 30 timeoutSeconds: 5
如欲了解更多信息,请访问:https://www.swtestacademy.com/selenium-kubernetes-scalable-parallel-tests/
j0pj023g2#
我找到了一个tutorial来在Kubernetes集群中设置Selenium网格。在这里你可以找到一些例子:
apiVersion: apps/v1 kind: Deployment metadata: name: selenium-hub spec: selector: matchLabels: app: selenium-hub strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 template: metadata: labels: app: selenium-hub spec: containers: - name: selenium-hub image: selenium/hub:4.0.0 resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 4444 livenessProbe: httpGet: path: /wd/hub/status port: 4444 initialDelaySeconds: 30 timeoutSeconds: 5
apiVersion: v1 kind: Pod metadata: name: selenium-hub labels: name: hub spec: containers: - name: selenium-hub image: selenium/hub:3.141.59-20200326 resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 4444 livenessProbe: httpGet: path: /wd/hub/status port: 4444 initialDelaySeconds: 30 timeoutSeconds: 5
apiVersion: v1 kind: ReplicationController metadata: name: selenium-rep spec: replicas: 2 selector: app: selenium-chrome template: metadata: name: selenium-chrome labels: app: selenium-chrome spec: containers: - name: node-chrome image: selenium/node-chrome ports: - containerPort: 5555 env: - name: HUB_HOST value: "selenium-srv" - name: HUB_PORT value: "4444"
apiVersion: v1 kind: Service metadata: name: selenium-srv labels: app: selenium-srv spec: selector: app: selenium-hub ports: - port: 4444 nodePort: 30001 type: NodePort
本教程也记录在YouTube上。你可以在那里找到一个playlist,其中有几集与Kubernetes上的Selenium Grid相关。
x7rlezfr3#
现在回答可能有点晚了,但我们现在有了带舵图的 selenium 枢纽。只是发布这个链接,以防有人偶然发现同样的问题。谢谢你的贡献。Selenium-hub helm chart
3条答案
按热度按时间uwopmtnx1#
您可以在以下位置找到Selenium Docker集线器图像:https://hub.docker.com/layers/selenium/hub/4.0.0-alpha-6-20200730
YAML示例
如欲了解更多信息,请访问:https://www.swtestacademy.com/selenium-kubernetes-scalable-parallel-tests/
j0pj023g2#
我找到了一个tutorial来在Kubernetes集群中设置Selenium网格。在这里你可以找到一些例子:
本教程也记录在YouTube上。你可以在那里找到一个playlist,其中有几集与Kubernetes上的Selenium Grid相关。
x7rlezfr3#
现在回答可能有点晚了,但我们现在有了带舵图的 selenium 枢纽。只是发布这个链接,以防有人偶然发现同样的问题。谢谢你的贡献。
Selenium-hub helm chart