-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
50 lines (50 loc) · 1.22 KB
/
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prezi-cluster
spec:
replicas: 1
template:
metadata:
labels:
app: prezi-exam
spec:
containers:
- name: prezi-api
image: registry.gitlab.com/prezi-homeassignments/armando.miani-devops/prezi-api
imagePullPolicy: Always
ports:
- containerPort: 9090
env:
- name: API_PORT
value: "9090"
- name: API_DB_HOST
value: "localhost"
- name: WORKERS
value: "1"
resources:
requests:
cpu: "200m"
- name: prezi-db
image: mongo:latest
imagePullPolicy: Always
ports:
- containerPort: 27017
resources:
requests:
cpu: "10m"
limits:
cpu: "10m"
- name: prezi-dbseed
image: registry.gitlab.com/prezi-homeassignments/armando.miani-devops/prezi-dbseed
imagePullPolicy: Always
env:
- name: DB_HOST
value: "localhost"
resources:
requests:
cpu: "10m"
limits:
cpu: "10m"
imagePullSecrets:
- name: registry.gitlab.com