-
Notifications
You must be signed in to change notification settings - Fork 0
/
backend-deployment.yaml
40 lines (40 loc) · 1.02 KB
/
backend-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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: backend
name: backend
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: backend
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.network/kontejnerizacija-projectnetwork: "true"
io.kompose.service: backend
spec:
containers:
- image: localhost:5000/kontejnerizacija-backend:latest
name: backend
ports:
- containerPort: 3000
hostPort: 3000
protocol: TCP
volumeMounts:
- mountPath: /usr/src/app/backend/images
name: app-images-volume
restartPolicy: Always
volumes:
- name: app-images-volume
persistentVolumeClaim:
claimName: app-images-volume