Compare commits
2 Commits
1b62fe732c
...
32e941fd57
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32e941fd57 | ||
|
|
283e59e280 |
@@ -2,14 +2,6 @@ FROM python:3.12-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install dependencies for Selenium and Chrome
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
wget \
|
|
||||||
gnupg \
|
|
||||||
unzip \
|
|
||||||
curl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
|||||||
10
k8s.yaml
10
k8s.yaml
@@ -56,6 +56,8 @@ spec:
|
|||||||
image: selenium/hub:4.16.1
|
image: selenium/hub:4.16.1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4444
|
- containerPort: 4444
|
||||||
|
- containerPort: 4442
|
||||||
|
- containerPort: 4443
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -65,9 +67,15 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: selenium-hub
|
app: selenium-hub
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- name: hub
|
||||||
port: 4444
|
port: 4444
|
||||||
targetPort: 4444
|
targetPort: 4444
|
||||||
|
- name: publish
|
||||||
|
port: 4442
|
||||||
|
targetPort: 4442
|
||||||
|
- name: subscribe
|
||||||
|
port: 4443
|
||||||
|
targetPort: 4443
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user