-
Notifications
You must be signed in to change notification settings - Fork 0
/
cvat-proxy-deployment.yaml
57 lines (57 loc) · 1.31 KB
/
cvat-proxy-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
labels:
io.kompose.service: cvat-proxy
name: cvat-proxy
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: cvat-proxy
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: cvat-proxy
spec:
containers:
- args:
- /bin/sh
- -c
- nginx -g 'daemon off;'
env:
- name: CVAT_HOST
value: localhost
image: nginx:stable-alpine
name: cvat-proxy
ports:
- containerPort: 80
resources: {}
volumeMounts:
- mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
name: cvat-nginx-config
readOnly: true
- mountPath: /etc/nginx/conf.d/cvat.conf
subPath: cvat.conf
name: cvat-proxy-config
readOnly: true
restartPolicy: Always
volumes:
- name: cvat-nginx-config
configMap:
name: cvat-config
items:
- key: nginxConfig
path: nginx.conf
- name: cvat-proxy-config
configMap:
name: cvat-config
items:
- key: cvatProxyConfig
path: cvat.conf