-
Notifications
You must be signed in to change notification settings - Fork 63
/
Deployment-v2.yml
61 lines (61 loc) · 1.42 KB
/
Deployment-v2.yml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: recommendation
version: v2
name: recommendation-v2
spec:
replicas: 1
selector:
matchLabels:
app: recommendation
version: v2
template:
metadata:
labels:
app: recommendation
version: v2
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- env:
- name: JAVA_OPTIONS
value: -Xms15m -Xmx15m -Xmn15m
image: docker.io/burrsutter/recommendation:v2
imagePullPolicy: Always
name: recommendation
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
- containerPort: 9779
name: prometheus
protocol: TCP
resources:
requests:
memory: "50Mi"
cpu: "250m" # 1/4 core
limits:
memory: "120Mi"
cpu: "500m"
livenessProbe:
httpGet:
port: 8080
path: /
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 10
readinessProbe:
httpGet:
port: 8080
path: /health
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 10
securityContext:
privileged: false