-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployTorrentApi.yml
54 lines (54 loc) · 1.23 KB
/
deployTorrentApi.yml
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
# Torrent node api
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: torrent-api-hypertube
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
app: torrent-api-hypertube
template:
metadata:
labels:
app: torrent-api-hypertube
spec:
imagePullSecrets:
- name: gitlab-registry
containers:
- image: git.harknet.ml:5005/becrespi/hypertube/torrent-api:_VERSION_
name: torrent-api-hypertube
ports:
- containerPort: 4002
env:
- name: jwtSecret
value: _JWT_SECRET_
- name: MONGO_DB_NAME
value: _MONGO_DB_NAME_
- name: MONGO_DB_HOST
value: _MONGO_DB_HOST_
tty: true
volumeMounts:
- mountPath: /torrent/public/movies
name: apache-hypertube-claim0
restartPolicy: Always
volumes:
- name: apache-hypertube-claim0
persistentVolumeClaim:
claimName: apache-hypertube-claim0
---
kind: Service
apiVersion: v1
metadata:
name: torrent-api-hypertube
spec:
selector:
app: torrent-api-hypertube
ports:
- port: 4002
targetPort: 4002