1、下面指令中的${namespace}需要替換為自己目前的命名空間
2、k8s環境中已經安裝了helm
操作步驟
1、helm安裝
helm repo add docker-selenium https://www.selenium.dev/docker-selenium -n ${namespace}
helm repo update
helm install selenium-grid docker-selenium/selenium-grid --set isolateComponents=true -n ${namespace}
2、擷取對外服務端口
上述目錄執行成功之後,執行下指令擷取對外端口
kubectl get nodes -n ${namespace} -o jsonpath="{.items[0].status.addresses[0].address
擷取端口如下:
擷取端口之後,根據目前機器的IP頁面通路一下位址,可以看到如下頁面:
3、MeterShpere系統參數填寫位址
4、建立場景開始調試
調試報告如下: