forked from vmwarecloudadvocacy/acme_fitness_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog-total.yaml
81 lines (81 loc) · 1.73 KB
/
catalog-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
apiVersion: v1
kind: Service
metadata:
name: catalog
labels:
app: acmefit
service: catalog
spec:
ports:
- name: http-catalog
protocol: TCP
port: 8082
selector:
app: acmefit
service: catalog
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: catalog
labels:
app: acmefit
service: catalog
spec:
selector:
matchLabels:
app: acmefit
service: catalog
strategy:
type: Recreate
replicas: 1
template:
metadata:
labels:
app: acmefit
service: catalog
spec:
volumes:
- name: acmefit-catalog-data
emptyDir: {}
containers:
- image: gcr.io/vmwarecloudadvocacy/acmeshop-catalog:latest
imagePullPolicy: "Always"
name: catalog
env:
- name: CATALOG_DB_HOST
value: 'catalog-mongo'
- name: CATALOG_DB_PASSWORD
valueFrom:
secretKeyRef:
name: catalog-mongo-pass
key: password
- name: CATALOG_DB_PORT
value: '27017'
- name: CATALOG_DB_USERNAME
value: 'mongoadmin'
- name: CATALOG_PORT
value: '8082'
- name: CATALOG_VERSION
value: 'v1'
- name: USERS_HOST
value: 'users'
- name: USERS_PORT
value: '8083'
- name: JAEGER_AGENT_HOST
value: 'localhost'
- name: JAEGER_AGENT_PORT
value: '6831'
ports:
- containerPort: 8082
name: catalog
volumeMounts:
- mountPath: "/data"
name: "acmefit-catalog-data"
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"