forked from vmwarecloudadvocacy/acme_fitness_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart-total.yaml
79 lines (79 loc) · 1.6 KB
/
cart-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: v1
kind: Service
metadata:
name: cart
labels:
app: acmefit
service: cart
spec:
ports:
- name: http-cart
protocol: TCP
port: 5000
selector:
app: acmefit
service: cart
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cart
labels:
app: acmefit
service: cart
spec:
selector:
matchLabels:
app: acmefit
service: cart
strategy:
type: Recreate
replicas: 1
template:
metadata:
labels:
app: acmefit
service: cart
spec:
volumes:
- name: acmefit-cart-data
emptyDir: {}
containers:
- image: gcr.io/vmwarecloudadvocacy/acmeshop-cart:latest
imagePullPolicy: "Always"
name: cart
env:
- name: REDIS_HOST
value: 'cart-redis'
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: cart-redis-pass
key: password
- name: REDIS_PORT
value: '6379'
- name: CART_PORT
value: '5000'
- name: USER_HOST
value: 'users'
- name: USER_PORT
value: '8083'
- name: JAEGER_AGENT_HOST
value: 'localhost'
- name: JAEGER_AGENT_PORT
value: '6831'
- name: AUTH_MODE
value: '1'
ports:
- containerPort: 5000
name: cart
volumeMounts:
- mountPath: "/data"
name: "acmefit-cart-data"
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"