-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
68 lines (48 loc) · 966 Bytes
/
app.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: book-store-app
labels:
bookstore/example: bookstore
spec:
replicas: 1
revisionHistoryLimit: 5
selector:
matchLabels:
app: book-store-app
template:
metadata:
labels:
app: book-store-app
spec:
containers:
- image: bookstore-app:v2
imagePullPolicy: IfNotPresent
name: book-store-app
resources:
requests:
cpu: 100m
memory: 1Gi
env:
- name: API_HOST
value: api.default.svc.cluster.local
livenessProbe:
tcpSocket:
port: 3000
ports:
- containerPort: 3000
---
#Book store App service definition.
apiVersion: v1
kind: Service
metadata:
name: app
labels:
"bookstore/example": bookstore
spec:
ports:
- port: 3000
protocol: TCP
selector:
app: book-store-app
type: LoadBalancer