-
Notifications
You must be signed in to change notification settings - Fork 0
/
canvas-worker-service.yaml
205 lines (205 loc) · 6.34 KB
/
canvas-worker-service.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
apiVersion: apps/v1
kind: Deployment
metadata:
name: canvas-lms-worker
spec:
selector:
matchLabels:
app: canvas-lms-worker
replicas: 1
template:
metadata:
labels:
app: canvas-lms-worker
spec:
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
containers:
- name: canvas-lms
image: registry.gitlab.com/onestepprojects/education-module/canvas-lms:stable
command: ["/bin/bash", "-c", "bundle exec script/delayed_job run"]
volumeMounts:
- name: canvas-lms-worker-brandable-css-disk
mountPath: /usr/src/app/public/dist/brandable_css
- name: canvas-lms-worker-tmp-disk
mountPath: /usr/src/app/tmp
- name: canvas-mnt
mountPath: /usr/src/app/config/cache_store.yml
subPath: file-cache-store
- name: canvas-mnt
mountPath: /usr/src/app/config/cassandra.yml
subPath: file-cassandra
- name: canvas-mnt
mountPath: /usr/src/app/config/consul.yml
subPath: file-consul
- name: canvas-mnt
mountPath: /usr/src/app/config/database.yml
subPath: file-database
- name: canvas-mnt
mountPath: /usr/src/app/config/delayed_jobs.yml
subPath: file-delayed-jobs
- name: canvas-mnt
mountPath: /usr/src/app/config/domain.yml
subPath: file-domain
- name: canvas-mnt
mountPath: /usr/src/app/config/dynamic_settings.yml
subPath: file-dynamic-settings
- name: canvas-mnt
mountPath: /usr/src/app/config/outgoing_mail.yml
subPath: file-outgoing-mail
- name: canvas-mnt
mountPath: /usr/src/app/config/redis.yml
subPath: file-redis
- name: canvas-mnt
mountPath: /usr/src/app/config/security.yml
subPath: file-security
- name: canvas-mnt
mountPath: /usr/src/app/config/selenium.yml
subPath: file-selenium
- name: canvas-mnt
mountPath: /usr/src/app/config/vault.yml
subPath: file-vault
- name: canvas-mnt
mountPath: /usr/src/app/config/environments/development-local.rb
subPath: file-development-local
- name: canvas-mnt
mountPath: /usr/src/app/wait-for-it.sh
subPath: file-wait-for-it
- name: canvas-mnt
mountPath: /usr/src/app/lib/data_fixup/lti/fill_custom_claim_columns_for_resource_link.rb
subPath: file-override-fill-custom-claim-columns
- name: canvas-mnt
mountPath: /usr/src/app/lib/data_fixup/lti/fill_lookup_uuid_and_resource_link_uuid_columns.rb
subPath: file-override-fill-lookup-uuid
- name: canvas-mnt
mountPath: /usr/src/app/db/migrate/20210201170030_fill_lookup_uuid_and_resource_link_uuid_columns_at_lti_resource_links.rb
subPath: file-override-fill-lookup
env:
- name: DB_DRIVER
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: DB_DRIVER
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: DB_PORT
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: postgres-secret
key: user_name
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: password
- name: DB_NAME
valueFrom:
configMapKeyRef:
name: postgres-cfgmap
key: postgres_db
- name: RAILS_ENV
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: RAILS_ENV
- name: REDIS_SERVER
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: REDIS_SERVER
- name: MAIL_SERVER
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: MAIL_SERVER
- name: MAIL_PORT
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_PORT
- name: MAIL_USERNAME
valueFrom:
secretKeyRef:
name: mail-secret
key: user_name
- name: MAIL_PASSWORD
valueFrom:
secretKeyRef:
name: mail-secret
key: password
- name: MAIL_DOMAIN
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_DOMAIN
- name: MAIL_DEFAULT_SENDER_ADDRESS
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_DEFAULT_SENDER_ADDRESS
- name: MAIL_DEFAULT_SENDER_NAME
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_DEFAULT_SENDER_NAME
- name: PASSENGER_STARTUP_TIMEOUT
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: PASSENGER_STARTUP_TIMEOUT
- name: DOMAIN
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: DOMAIN
- name: APP_DOMAIN
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: APP_DOMAIN
- name: CG_HTTP_PORT
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: CG_HTTP_PORT
- name: CG_HTTPS_PORT
valueFrom:
configMapKeyRef:
name: canvas-cfgmap
key: CG_HTTPS_PORT
ports:
- containerPort: 8900
name: canvas
volumes:
- name: canvas-mnt
configMap:
name: canvas-cfgmap
defaultMode: 0777
- name: canvas-lms-worker-brandable-css-disk
persistentVolumeClaim:
claimName: canvas-lms-brandable-css-disk-canvas-lms-0
- name: canvas-lms-worker-tmp-disk
persistentVolumeClaim:
claimName: canvas-lms-tmp-disk-canvas-lms-0
---
apiVersion: v1
kind: Service
metadata:
name: canvas-lms-worker-service
spec:
selector:
app: canvas-lms-worker
type: ClusterIP
ports:
- port: 8900
targetPort: 8900