mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
43 lines
794 B
YAML
43 lines
794 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: grid-deployment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: grid
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: grid
|
|
spec:
|
|
containers:
|
|
- name: grid
|
|
image: playwright-grid
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: DEBUG
|
|
value: "pw:grid*"
|
|
- name: PLAYWRIGHT_GRID_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: access-key-secret
|
|
key: access-key
|
|
command: ["node", "./cli.js"]
|
|
args: ["grid", "--port=3000"]
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: grid-service
|
|
spec:
|
|
selector:
|
|
app: grid
|
|
ports:
|
|
- protocol: TCP
|
|
port: 3000
|
|
targetPort: 3000
|
|
type: LoadBalancer
|