diff --git a/apps/changedetection/kustomization.yaml b/apps/changedetection/kustomization.yaml index 2e99d0fc..e62ca264 100644 --- a/apps/changedetection/kustomization.yaml +++ b/apps/changedetection/kustomization.yaml @@ -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: diff --git a/apps/changedetection/playwright-deploy.yaml b/apps/changedetection/playwright-deploy.yaml new file mode 100644 index 00000000..b2fba069 --- /dev/null +++ b/apps/changedetection/playwright-deploy.yaml @@ -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" diff --git a/apps/changedetection/playwright-svc.yaml b/apps/changedetection/playwright-svc.yaml new file mode 100644 index 00000000..b02835f4 --- /dev/null +++ b/apps/changedetection/playwright-svc.yaml @@ -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 diff --git a/apps/changedetection/selenium-deploy.yaml b/apps/changedetection/selenium-deploy.yaml deleted file mode 100644 index abee103b..00000000 --- a/apps/changedetection/selenium-deploy.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: selenium - labels: - app: selenium -spec: - replicas: 1 - selector: - matchLabels: - app: selenium - template: - metadata: - labels: - app: selenium - spec: - containers: - - name: selenium - image: selenium/standalone-chrome:131.0 - ports: - - containerPort: 4444 - resources: - limits: - memory: "1000Mi" - cpu: ".5" - livenessProbe: - httpGet: - path: /wd/hub/status - port: 4444 - initialDelaySeconds: 30 - timeoutSeconds: 5 - readinessProbe: - httpGet: - path: /wd/hub/status - port: 4444 - initialDelaySeconds: 30 - timeoutSeconds: 5 diff --git a/apps/changedetection/selenium-svc.yaml b/apps/changedetection/selenium-svc.yaml deleted file mode 100644 index c8ebc876..00000000 --- a/apps/changedetection/selenium-svc.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: selenium - labels: - app: selenium -spec: - ports: - - port: 4444 - targetPort: 4444 - name: wd - selector: - app: selenium diff --git a/apps/changedetection/values.yaml b/apps/changedetection/values.yaml index 6f27c7c6..0a17cfc3 100644 --- a/apps/changedetection/values.yaml +++ b/apps/changedetection/values.yaml @@ -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: