Skip to content

Commit

Permalink
changedetection: switch to playwright
Browse files Browse the repository at this point in the history
Signed-off-by: paulfantom <[email protected]>
  • Loading branch information
paulfantom committed Nov 30, 2024
1 parent 83db9bb commit 7cdd8f6
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 53 deletions.
4 changes: 2 additions & 2 deletions apps/changedetection/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ resources:
- repository.yaml
- namespace.yaml
- release.yaml
- selenium-deploy.yaml
- selenium-svc.yaml
- playwright-deploy.yaml
- playwright-svc.yaml
configMapGenerator:
- name: values
files:
Expand Down
28 changes: 28 additions & 0 deletions apps/changedetection/playwright-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: playwright
labels:
app: playwright
spec:
replicas: 1
selector:
matchLabels:
app: playwright
template:
metadata:
labels:
app: playwright
spec:
containers:
- name: playwright
image: dgtlmoon/sockpuppetbrowser:latest
ports:
- containerPort: 3000
env:
- name: DEFAULT_LAUNCH_ARGS
value: '["--window-size=1920,1080"]'
resources:
limits:
memory: "1000Mi"
cpu: "1"
13 changes: 13 additions & 0 deletions apps/changedetection/playwright-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: playwright
labels:
app: playwright
spec:
ports:
- port: 3000
targetPort: 3000
name: wd
selector:
app: playwright
37 changes: 0 additions & 37 deletions apps/changedetection/selenium-deploy.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions apps/changedetection/selenium-svc.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion apps/changedetection/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ ingress:
- change.ankhmorpork.thaum.xyz

env:
WEBDRIVER_URL: http://selenium:4444/wd/hub
simple:
PLAYWRIGHT_DRIVER_URL: "ws://playwright:3000/?stealth=1&--disable-web-security=true"

resources:
# limits:
Expand Down

0 comments on commit 7cdd8f6

Please sign in to comment.