Add proxy settings for crawler and profilebrowser (#997)
This commit is contained in:
parent
7069b33646
commit
5807507f29
@ -138,6 +138,15 @@ spec:
|
|||||||
- name: STORE_USER
|
- name: STORE_USER
|
||||||
value: "{{ userid }}"
|
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:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: {{ crawler_limits_cpu }}
|
cpu: {{ crawler_limits_cpu }}
|
||||||
@ -166,7 +175,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
crawl: {{ id }}
|
crawl: {{ id }}
|
||||||
role: crawler
|
role: crawler
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
@ -78,6 +78,10 @@ spec:
|
|||||||
- name: VNC_PASS
|
- name: VNC_PASS
|
||||||
value: {{ vnc_password }}
|
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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@ -119,6 +119,9 @@ data:
|
|||||||
|
|
||||||
crawler_liveness_port: "{{ .Values.crawler_liveness_port | default 0 }}"
|
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 }}"
|
crawler_node_type: "{{ .Values.crawler_node_type }}"
|
||||||
redis_node_type: "{{ .Values.redis_node_type }}"
|
redis_node_type: "{{ .Values.redis_node_type }}"
|
||||||
|
|
||||||
|
|||||||
@ -208,6 +208,10 @@ crawler_session_time_limit_seconds: 18000
|
|||||||
|
|
||||||
crawler_liveness_port: 6065
|
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
|
# time to wait for graceful stop
|
||||||
grace_period: 1000
|
grace_period: 1000
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user