-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
import-worker-deployment.yaml
113 lines (113 loc) · 3.49 KB
/
import-worker-deployment.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
apiVersion: apps/v1
kind: Deployment
metadata:
name: import-worker
namespace: production
spec:
selector:
matchLabels:
app: import-worker
replicas: 1
template:
metadata:
labels:
app: import-worker
spec:
containers:
- name: db-import-worker
image: envirodgi/db-import-worker:a1cb125f6390386c770fc341f8f790e56ab90a95
imagePullPolicy: Always
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "1500m"
env:
- name: ALLOWED_ARCHIVE_HOSTS
value: "https://edgi-wm-versionista.s3.amazonaws.com/ https://edgi-wm-versionista.s3-us-west-2.amazonaws.com/ https://edgi-wm-archive.s3.amazonaws.com/ https://edgi-wm-archive.s3.us-west-2.amazonaws.com/"
# Set to "true" to be safe/conservative on what kinds of diffs to try
# If we suddenly see the diff server going nuts, maybe uncomment this.
# - name: ANALYSIS_REQUIRE_MEDIA_TYPE
# value: "true"
- name: AUTO_ANNOTATION_USER
valueFrom:
secretKeyRef:
name: app-secrets
key: auto_annotation_user
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: app-secrets
key: aws_access_key_id
- name: AWS_ARCHIVE_BUCKET
value: edgi-wm-archive
- name: AWS_REGION
value: us-west-2
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: app-secrets
key: aws_secret_access_key
- name: AWS_WORKING_BUCKET
value: edgi-wm-db-internal
- name: CACHE_DATE_DIFFER
value: "2019-09-22T00:00:00Z"
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: app-secrets
key: database_rds
- name: DIFFER_DEFAULT
value: http://diffing:80
- name: HOST_URL
value: "https://api.monitoring.envirodatagov.org/"
- name: LANG
value: en_US.UTF-8
- name: MAIL_SENDER
value: [email protected]
- name: MAX_COLLECTION_PAGE_SIZE
value: "1000"
- name: NEW_RELIC_AGENT_ENABLED
value: "false"
- name: POSTMARK_API_TOKEN
valueFrom:
secretKeyRef:
name: app-secrets
key: postmark_api_token
- name: QUEUES
value: "mailers,import,analysis"
- name: RACK_ENV
value: production
- name: RAILS_ENV
value: production
- name: RAILS_LOG_TO_STDOUT
value: enabled
- name: RAILS_SERVE_STATIC_FILES
value: enabled
# Redis cache is disabled in favor of just relying on CloudFront.
# - name: REDIS_CACHE_URL
# valueFrom:
# secretKeyRef:
# name: app-secrets
# key: redis_cache_url
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
name: app-secrets
key: secret_key_base
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: app-secrets
key: sentry_dsn
- name: TOKEN_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: app-secrets
key: token_private_key
- name: API_READ_ONLY
value: "true"
- name: INCREMENTAL_UPDATE
value: "6"