You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
947 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cvat-nginx
namespace: cvat
labels:
app: cvat-app
tier: proxy
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: cvat-app
tier: proxy
template:
metadata:
labels:
app: cvat-app
tier: proxy
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
volumeMounts:
- mountPath: /etc/nginx
readOnly: true
name: cvat-nginx-conf
- mountPath: /var/log/nginx
name: log
volumes:
- name: cvat-nginx-conf
configMap:
name: cvat-nginx-conf
items:
- key: nginx.conf
path: nginx.conf
- key: mime.types
path: mime.types
- key: cvat.conf
path: cvat.d/cvat.conf
- name: log
emptyDir: {}