forked from vmwarecloudadvocacy/acme_fitness_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
order-total.yaml
92 lines (92 loc) · 2.02 KB
/
order-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
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: v1
kind: Service
metadata:
name: order
labels:
app: acmefit
service: order
spec:
ports:
- name: http-order
protocol: TCP
port: 6000
selector:
app: acmefit
service: order
---
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: order
labels:
app: acmefit
service: order
spec:
selector:
matchLabels:
app: acmefit
service: order
strategy:
type: Recreate
replicas: 1
template:
metadata:
labels:
app: acmefit
service: order
spec:
volumes:
- name: acmefit-order-data
emptyDir: {}
containers:
- image: gcr.io/vmwarecloudadvocacy/acmeshop-order:latest
# orderpostgres:latest
name: order
env:
- name: ORDER_DB_HOST
value: order-postgres
- name: ORDER_DB_PASSWORD
valueFrom:
secretKeyRef:
name: order-postgres-pass
key: password
- name: ORDER_DB_PORT
value: '5432'
- name: AUTH_MODE
value: '1'
- name: ORDER_DB_USERNAME
value: pgbench
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: order-postgres-pass
key: password
- name: ORDER_AUTH_DB
value: postgres
- name: ORDER_PORT
value: '6000'
- name: PAYMENT_PORT
value: '9000'
- name: PAYMENT_HOST
value: 'payment'
- name: USER_HOST
value: 'users'
- name: USER_PORT
value: '8083'
- name: JAEGER_AGENT_HOST
value: 'localhost'
- name: JAEGER_AGENT_PORT
value: '6831'
ports:
- containerPort: 6000
name: order
volumeMounts:
- mountPath: "/data"
name: "acmefit-order-data"
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"