尝试使用 yaml 在 kubernet 集群中部署 zalenium。遇到此问题。
这里我也添加了 yaml 文件。
请让我知道我做错了什么?
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: zalenium
spec:
replicas: 1
template:
metadata:
labels:
app: zalenium
role: grid
spec:
# Added to test manually https://github.com/zalando/zalenium/issues/246
securityContext:
fsGroup: 1000
containers:
- name: zalenium
image: docker.repo1.uhc.com/gcl/zalenium:latest
args:
- start
- '--desiredContainers'
- '2'
- '--screenWidth'
- '1440'
- '--screenHeight'
- '810'
- '--seleniumImageName'
- 'docker.repo1.uhc.com/gcl/selenium:latest'
- '--maxTestSessions'
- '4'
env:
- name: ZALENIUM_KUBERNETES_CPU_REQUEST
value: 50m
- name: ZALENIUM_KUBERNETES_CPU_LIMIT
value: 100m
- name: ZALENIUM_KUBERNETES_MEMORY_REQUEST
value: 100Mi
- name: ZALENIUM_KUBERNETES_MEMORY_LIMIT
value: 5Gi
- name: OVERRIDE_WAIT_TIME
value: 5m
resources:
requests:
cpu: 50m
memory: 100Mi
ports:
- containerPort: 4444
protocol: TCP
volumeMounts:
- name: zalenium-data
mountPath: /home/seluser/videos
- name: zalenium-mounted
mountPath: /tmp/mounted
volumes:
- name: zalenium-data
emptyDir: {}
- name: zalenium-mounted
emptyDir: {}
securityContext:
runAsUser: 1000
serviceAccountName: marora23
serviceAccount: marora23
问题......................15:56:01.942 [main] INFO dzezckKubernetesContainerClient - 初始化 Kubernetes 支持............GridLauncher 在 1 分钟后无法启动, 失败... % Total % Received % Xferd 平均速度 时间
时间 当前 Dload 上传 总花费 剩余速度
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 404 0 404 0 0 1348 0 --:--:-- --:--:-- --:--:-- 1346 Zalenium - 502
- Bad Gateway
</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style>
h1 { text-align: center; }
address { text-align: center; } </style> </head> <body> <h1>502
- Bad Gateway
</h1> <hr> <address>nginx/1.10.3 - Zalenium 3.141.59w</address> </body> </html>
enter code here