-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadvertisements.yaml
More file actions
68 lines (68 loc) · 1.52 KB
/
Copy pathadvertisements.yaml
File metadata and controls
68 lines (68 loc) · 1.52 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: advertisements
app: ecommerce
name: advertisements
spec:
replicas: 1
selector:
matchLabels:
service: advertisements
app: ecommerce
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
service: advertisements
app: ecommerce
spec:
containers:
- image: ddtraining/advertisements-service:latest
name: advertisements
command: ["ddtrace-run"]
args: ["flask", "run", "--port=5002", "--host=0.0.0.0"]
env:
- name: FLASK_APP
value: "ads.py"
- name: FLASK_DEBUG
value: "1"
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
key: pw
name: db-password
- name: POSTGRES_USER
value: "user"
- name: DATADOG_SERVICE_NAME
value: "advertisements-service"
- name: DD_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_LOGS_INJECTION
value: "true"
- name: DD_ANALYTICS_ENABLED
value: "true"
ports:
- containerPort: 5002
resources: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
service: advertisements
app: ecommerce
name: advertisements
spec:
ports:
- port: 5002
protocol: TCP
targetPort: 5002
selector:
service: advertisements
app: ecommerce
status: