-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobile-server-total.yaml
60 lines (59 loc) · 1.21 KB
/
mobile-server-total.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
apiVersion: v1
kind: Service
metadata:
name: mobile-server
labels:
app: fitcycle
spec:
ports:
- name: http-fcmobile
protocol: TCP
port: 5000
nodePort: 30432
selector:
app: fitcycle
tier: mobile
type: NodePort
---
apiVersion: apps/v1beta1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: mobile-server
labels:
app: fitcycle
spec:
selector:
matchLabels:
app: fitcycle
tier: mobile
strategy:
type: Recreate
replicas: 2
template:
metadata:
labels:
app: fitcycle
tier: mobile
spec:
volumes:
- name: fitcycle-mobileserver-data
emptyDir: {}
containers:
- image: gcr.io/learning-containers-187204/mobile-server:latest
name: mobile-server
env:
- name: FITCYCLEAPI
value: "api-server:5000/api/v1.0/signups"
ports:
- containerPort: 5000
name: mobile-server
volumeMounts:
- mountPath: "/data"
name: "fitcycle-mobileserver-data"
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"