-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathscrapyd_k8s.sample-docker.conf
46 lines (39 loc) · 1.48 KB
/
scrapyd_k8s.sample-docker.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Sample scrapyd-k8s configuration for a local Docker setup
#
[scrapyd]
bind_address = 0.0.0.0
http_port = 6800
# Optional basic http authentication for all endpoints.
#username = sampleusername
#password = changeme123
# You can choose between Remote and Local. Remote contacts a remote
# repositor with Docker images, while Local uses the local docker image
# cache (`docker image ls`).
repository = scrapyd_k8s.repository.Local
# Since this is the Docker example, we choose Docker here.
launcher = scrapyd_k8s.launcher.Docker
# For each project, define a project section.
# This contains a repository, with the container label to use.
[project.example]
repository = ghcr.io/q-m/scrapyd-k8s-spider-example
#
# Resources
#
# Resource limits are completely optional, so you can omit all of these sections
# if you like - though on production it is recommended to set them. Resources
# can be set at a global level, project level, and spider level. Each more
# specific level overrides any previous, so you can set limited default
# resources and give a specific project spider more headroom.
# Resource limits for all projects, can be overridden per project.
[default.resources]
limits_cpu = 0.8
limits_memory = 0.5G
# Resource limits for the example project, can be overridden per spider.
[project.example.resources]
limits_cpu = 0.6
limits_memory = 0.3G
# Resource limits for a specific spider in the example project.
[project.example.quotes.resources]
limits_cpu = 0.5
limits_memory = 0.2G