-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
status-update-job.yaml
96 lines (96 loc) · 3.24 KB
/
status-update-job.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
apiVersion: batch/v1
kind: CronJob
metadata:
name: status-update-job
namespace: production
spec:
schedule: "0 10,22 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: db-status-update-job
image: envirodgi/db-status-update-job: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/"
- 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: RACK_ENV
value: production
- name: RAILS_ENV
value: production
- name: RAILS_LOG_TO_STDOUT
value: enabled
- name: RAILS_SERVE_STATIC_FILES
value: enabled
- 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: INCREMENTAL_UPDATE
value: "1"