-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployment-jobmanager-api.yaml
83 lines (83 loc) · 2.42 KB
/
deployment-jobmanager-api.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: jobmanager-api
spec:
selector:
matchLabels:
app: jobmanager-api
replicas: 1
template:
metadata:
labels:
app: jobmanager-api
spec:
containers:
- name: jobmanager-api
image: registry.cullen.io/jobmanager-api:v0.0.24
command: ["gunicorn"]
args:
[
"--bind",
"0.0.0.0:5000",
"--log-level=debug",
"jobmanager.wsgi",
"--timeout",
"300",
]
ports:
- containerPort: 5000
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: nfs-media-vol
mountPath: /code/media
- mountPath: /code/config.yaml
subPath: config.yaml
name: jobmanager-config-volume
- name: jobmanager-api-nginx
image: registry.cullen.io/jobmanager-api:v0.0.24
command: ["nginx"]
args: ["-g", "daemon off;"]
ports:
- containerPort: 80
protocol: TCP
- containerPort: 443
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: nfs-media-vol
mountPath: /code/media
- mountPath: /code/config.yaml
subPath: config.yaml
name: jobmanager-config-volume
- mountPath: /etc/nginx/sites-available/jobmanager
subPath: jobmanager
name: jobmanager-api-nginx-siteconf
- mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
name: jobmanager-api-nginx-conf
imagePullSecrets:
- name: regcred
volumes:
- name: nfs-media-vol
persistentVolumeClaim:
claimName: nfs-media-data
- configMap:
name: jobmanager-config
items:
- key: config.yaml
path: config.yaml
name: jobmanager-config-volume
- configMap:
name: jobmanager-api-nginx-siteconf
items:
- key: jobmanager
path: jobmanager
name: jobmanager-api-nginx-siteconf
- configMap:
name: jobmanager-api-nginx-conf
items:
- key: nginx.conf
path: nginx.conf
name: jobmanager-api-nginx-conf