Add proxy settings for crawler and profilebrowser (#997)

This commit is contained in:
Vinzenz Sinapius 2023-07-27 01:11:10 +02:00 committed by GitHub
parent 7069b33646
commit 5807507f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 1 deletions

View File

@ -138,6 +138,15 @@ spec:
- name: STORE_USER
value: "{{ userid }}"
{% if crawler_socks_proxy_host %}
- name: SOCKS_HOST
value: "{{ crawler_socks_proxy_host }}"
{% if crawler_socks_proxy_port %}
- name: SOCKS_PORT
value: "{{ crawler_socks_proxy_port }}"
{% endif %}
{% endif %}
resources:
limits:
cpu: {{ crawler_limits_cpu }}
@ -166,7 +175,7 @@ metadata:
labels:
crawl: {{ id }}
role: crawler
spec:
clusterIP: None
selector:

View File

@ -78,6 +78,10 @@ spec:
- name: VNC_PASS
value: {{ vnc_password }}
{% if crawler_socks_proxy_host %}
- name: CHROME_FLAGS
value: "--proxy-server=socks5://{{ crawler_socks_proxy_host }}:{{ crawler_socks_proxy_port | default('9050') }}"
{% endif %}
---
apiVersion: v1
kind: Service

View File

@ -119,6 +119,9 @@ data:
crawler_liveness_port: "{{ .Values.crawler_liveness_port | default 0 }}"
crawler_socks_proxy_host: "{{ .Values.crawler_socks_proxy_host }}"
crawler_socks_proxy_port: "{{ .Values.crawler_socks_proxy_port }}"
crawler_node_type: "{{ .Values.crawler_node_type }}"
redis_node_type: "{{ .Values.redis_node_type }}"

View File

@ -208,6 +208,10 @@ crawler_session_time_limit_seconds: 18000
crawler_liveness_port: 6065
# optional: use socks5 proxy for crawler and profilebrowser
# crawler_socks_proxy_host: 192.0.2.1
# crawler_socks_proxy_port: 9050
# time to wait for graceful stop
grace_period: 1000