-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment-frontend.yaml
65 lines (65 loc) · 1.36 KB
/
deployment-frontend.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment-v7
spec:
selector:
matchLabels:
app: frontend
replicas: 1
template:
metadata:
labels:
app: frontend
version: v7
spec:
containers:
- name: frontend
image: gcr.io/carlories/frontend:v7
ports:
- containerPort: 3000
resources:
requests:
memory: "1Gi"
cpu: "300m"
limits:
memory: "2Gi"
cpu: "400m"
env:
- name: BACKEND_HOST
value: "backend-service"
- name: BACKEND_PORT
value: "80"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment-v5
spec:
selector:
matchLabels:
app: frontend
replicas: 1
template:
metadata:
labels:
app: frontend
version: v5
spec:
containers:
- name: frontend
image: gcr.io/carlories/frontend:v5
ports:
- containerPort: 3000
resources:
requests:
memory: "1Gi"
cpu: "300m"
limits:
memory: "2Gi"
cpu: "400m"
env:
- name: BACKEND_HOST
value: "backend-service"
- name: BACKEND_PORT
value: "80"