-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwarehouse.yaml
41 lines (41 loc) · 932 Bytes
/
warehouse.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
apiVersion: v1
kind: Service
metadata:
name: warehouse
spec:
selector:
app: warehouse
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: warehouse
spec:
replicas: 1
selector:
matchLabels:
app: warehouse
template:
metadata:
labels:
app: warehouse
spec:
containers:
- name: warehouse
image: warehouse:1.1-SNAPSHOT
imagePullPolicy: Never
ports:
- containerPort: 8080
env:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://lgtm:4318"
- name: LOGGING_FILE_NAME
value: application.log
- name: SPRING_RABBITMQ_HOST
value: "rabbitmq"
- name: OTEL_RESOURCE_ATTRIBUTES
value: service.name=warehouse,service.namespace=shop,service.version=1.1,deployment.environment.name=staging