-
Notifications
You must be signed in to change notification settings - Fork 413
/
Copy pathcarts.yml
72 lines (72 loc) · 1.56 KB
/
carts.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
62
63
64
65
66
67
68
69
70
71
72
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: carts
namespace: staging
spec:
replicas: 1
template:
metadata:
labels:
app: carts
version: v1
spec:
containers:
- name: carts
image: 10.31.240.247:5000/library/sockshop/carts-0.7.0
env:
- name: JAVA_OPTS
value: -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
- name: DT_TAGS
value: "product=sockshop"
- name: DT_CUSTOM_PROP
value: "SERVICE_TYPE=BACKEND"
resources:
limits:
cpu: 500m
memory: 2048Mi
requests:
cpu: 400m
memory: 768Mi
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /tmp
name: tmp-volume
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 15
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 15
volumes:
- name: tmp-volume
emptyDir:
medium: Memory
nodeSelector:
beta.kubernetes.io/os: linux
---
apiVersion: v1
kind: Service
metadata:
name: carts
labels:
app: carts
namespace: staging
spec:
ports:
- name: http
port: 80
targetPort: 8080
selector:
app: carts
type: LoadBalancer