-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployments.yaml
110 lines (110 loc) · 2.32 KB
/
deployments.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
apiVersion: apps/v1
kind: Deployment
metadata:
name: stocks
labels:
app: stock
spec:
replicas: 1
selector:
matchLabels:
app: stock
template:
metadata:
labels:
app: stock
spec:
containers:
- name: stockscont
image: tthebst/stock_picker:2
ports:
- containerPort: 80
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: groupproject
labels:
app: groupproject
spec:
replicas: 1
selector:
matchLabels:
app: groupproject
template:
metadata:
labels:
app: groupproject
spec:
containers:
- name: groupproject-cont
image: tthebst/groupproject:latest
ports:
- containerPort: 80
env:
- name: AWS-ACCESS-KEY-ID
valueFrom:
secretKeyRef:
name: aws
key: aws_key.txt
- name: AWS-SECRET-ACCESS-KEY
valueFrom:
secretKeyRef:
name: aws
key: aws_key_access.txt
resources:
requests:
memory: "128Mi"
cpu: "500m"
limits:
memory: "512Mi"
cpu: "750m"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-web
labels:
app: my-web
spec:
replicas: 1
selector:
matchLabels:
app: my-web
template:
metadata:
labels:
app: my-web
spec:
containers:
- name: my-web-cont
image: tthebst/my_web:latest
ports:
- containerPort: 80
env:
- name: TZ
value: "Europe/Amsterdam"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws
key: aws_key.txt
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws
key: aws_key_access.txt
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"