-
Notifications
You must be signed in to change notification settings - Fork 0
/
webworkdep.yaml
40 lines (38 loc) · 1007 Bytes
/
webworkdep.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: webwork
namespace: test001
spec:
replicas: 1
template:
metadata:
labels:
app: webwork-web
spec:
containers:
- name: webwork
image: nmolleruq/webwork2:rel-ww2.14
env:
- name: WEBWORK_ROOT_URL
value: http://192.168.99.100:30070
- name: WEBWORK_DB_USER
value: root
- name: WEBWORK_DB_PASSWORD
value: randomepassword
- name: WEBWORK_DB_HOST
value: db-mariadb
- name: WEBWORK_DB_DSN
value: DBI:mysql:webwork:db-mariadb:3306
volumeMounts:
- mountPath: /opt/webwork/courses
name: ww-storage
- mountPath: /opt/webwork/webwork2/htdocs
name: ww-htdocs
volumes:
- name: ww-storage
persistentVolumeClaim:
claimName: pvc-pv02
- name: ww-htdocs
persistentVolumeClaim:
claimName: pvc-pv03