-
Notifications
You must be signed in to change notification settings - Fork 2
/
backend.yml
239 lines (239 loc) · 6.66 KB
/
backend.yml
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
apiVersion: apps/v1
kind: Deployment
metadata:
name: cae-backend
spec:
replicas: 1
selector:
matchLabels:
app: cae-backend
template:
metadata:
labels:
app: cae-backend
creationTimestamp: null
spec:
tolerations:
- key: "node-role.kubernetes.io"
operator: "Equal"
value: "master"
effect: "NoSchedule"
nodeSelector:
kubernetes.io/role: master
containers:
- name: cae-code-generation-service
image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/cae-code-generation-service:master
imagePullPolicy: Always
ports:
- containerPort: 8080
- containerPort: 8443
- containerPort: 9011
env:
- name: HTTP_PORT
value: '8080'
- name: HTTPS_PORT
value: '8443'
- name: LAS2PEER_PORT
value: '9011'
- name: SERVICE_PASSPHRASE
value: someNewPass
- name: GIT_USER
valueFrom:
secretKeyRef:
name: github-creds
key: username
- name: GIT_PASSWORD
valueFrom:
secretKeyRef:
name: github-creds
key: password
- name: GIT_USER_MAIL
value: mail@rwth
- name: GIT_ORGANIZATION
value: $(git_organization)
- name: TEMPLATE_REPOSITORY
value: CAE-Templates
- name: DEPLOYMENT_REPO
value: CAE-Deployment-Temp
- name: JENKINS_URL
value: $(jenkins_url)
- name: JENKINS_JOB_TOKEN
valueFrom:
secretKeyRef:
name: jenkins-job-token
key: token
- name: BUILD_JOB_NAME
value: Build-Job
- name: DOCKER_JOB_NAME
value: Docker-Job
- name: USED_GIT_HOST
value: GitHub
- name: BASE_URL
value: https://github.com
- name: WIDGET_HOME_BASE_URL
value: $(widget_homebase_url)
- name: OIDC_PROVIDER
value: https://api.learning-layers.eu/o/oauth2
- name: TOKEN
valueFrom:
secretKeyRef:
name: github-creds
key: personal_access_token
envFrom:
- configMapRef:
name: cae-config
- name: mysql
image: mysql
imagePullPolicy: Always
ports:
- containerPort: 3306
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-creds
key: password
- name: MYSQL_DATABASE
value: commedit
args: [
"--character-set-server=utf8mb4",
"--character_set_filesystem=utf8",
"--collation-server=utf8mb4_unicode_ci",
"--init-connect='SET NAMES utf8'",
"--init_connect='SET collation_connection = utf8_general_ci'",
"--skip-character-set-client-handshake",
"--default-authentication-plugin=mysql_native_password"
]
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
- name: cae-model-persistence-service
image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/cae-model-persistence-service:master
imagePullPolicy: Always
ports:
- containerPort: 8081
- containerPort: 8444
- containerPort: 9012
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: HTTP_PORT
value: '8081'
- name: HTTPS_PORT
value: '8444'
- name: LAS2PEER_PORT
value: '9012'
- name: SERVICE_PASSPHRASE
value: someNewPass
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mysql-creds
key: username
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-creds
key: password
- name: MYSQL_HOST
value: 127.0.0.1
- name: MYSQL_PORT
value: '3306'
- name: MYSQL_DATABASE
value: commedit
- name: DEPLOYMENT_URL
value: localhost:8090 # Change it
- name: BOOTSTRAP
value: $(POD_IP):9011
- name: CROSS_ORIGIN_RESOURCE_DOMAIN
value: '*'
- name: INIT_WIREFRAME_EXTENSION
value: 'true'
- name: cae-project-management-service
image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/cae-project-management-service:master
imagePullPolicy: Always
ports:
- containerPort: 8082
- containerPort: 8445
- containerPort: 9013
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: HTTP_PORT
value: '8082'
- name: HTTPS_PORT
value: '8445'
- name: LAS2PEER_PORT
value: '9013'
- name: SERVICE_PASSPHRASE
value: someNewPass
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mysql-creds
key: username
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-creds
key: password
- name: MYSQL_HOST
value: 127.0.0.1
- name: MYSQL_PORT
value: '3306'
- name: MYSQL_DATABASE
value: commedit
- name: GITHUB_PERSONAL_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: github-creds-projects
key: personal_access_token
- name: GITHUB_ORGANIZATION
value: $(git_organization_projects)
- name: GITHUB_OAUTH_CLIENTID
valueFrom:
secretKeyRef:
name: github-creds-oauth-app
key: oauth_clientid
- name: GITHUB_OAUTH_CLIENTSECRET
valueFrom:
secretKeyRef:
name: github-creds-oauth-app
key: oauth_clientsecret
- name: REQ_BAZ_PROJECT_ID
value: $(req_baz_project_id)
- name: BOOTSTRAP
value: $(POD_IP):9012
envFrom:
- configMapRef:
name: cae-config
imagePullSecrets:
- name: docker-cred
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: cae-mysql-pv-claim
---
kind: Service
apiVersion: v1
metadata:
name: cae-backend-outside
spec:
type: NodePort
selector:
app: cae-backend
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
nodePort: 30165
- name: http2
protocol: TCP
port: 81
targetPort: 8081
nodePort: 30166