forked from DataDog/opentelemetry-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
115 lines (115 loc) · 3.68 KB
/
values.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
apiVersion: v1
kind: Service
metadata:
name: manual-container-metrics-app
labels:
helm.sh/chart: manual-container-metrics-app-0.1.0
app.kubernetes.io/name: manual-container-metrics-app
app.kubernetes.io/instance: manual-container-metrics-app
app.kubernetes.io/version: "1.16.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 3000
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: manual-container-metrics-app
app.kubernetes.io/instance: manual-container-metrics-app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: manual-container-metrics-app
labels:
helm.sh/chart: manual-container-metrics-app-0.1.0
app.kubernetes.io/name: manual-container-metrics-app
app.kubernetes.io/instance: manual-container-metrics-app
app.kubernetes.io/version: "1.16.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: manual-container-metrics-app
app.kubernetes.io/instance: manual-container-metrics-app
template:
metadata:
labels:
app.kubernetes.io/name: manual-container-metrics-app
app.kubernetes.io/instance: manual-container-metrics-app
spec:
securityContext:
{}
containers:
- name: manual-container-metrics-app
securityContext:
{}
image: "datadog/opentelemetry-examples:manual-container-metrics-app-v1.0.5"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 3000
protocol: TCP
livenessProbe:
httpGet:
path: /liveness
port: http
readinessProbe:
httpGet:
path: /readiness
port: http
env:
- name: OTEL_SERVICE_NAME
value: manual-container-metrics-app
- name: OTEL_CONTAINER_NAME
value: manual-container-metrics-app
- name: OTEL_K8S_CONTAINER_ID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: OTEL_K8S_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: OTEL_K8S_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_K8S_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTLP_GRPC_PORT
value: "4317"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: 'http://$(HOST_IP):$(OTLP_GRPC_PORT)'
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: grpc
- name: OTEL_RESOURCE_ATTRIBUTES
value: >-
service.name=$(OTEL_SERVICE_NAME),
k8s.namespace.name=$(OTEL_K8S_NAMESPACE),
k8s.node.name=$(OTEL_K8S_NODE_NAME),
k8s.pod.name=$(OTEL_K8S_POD_NAME),
k8s.container.name=manual-container-metrics-app,
host.name=$(OTEL_K8S_NODE_NAME),
deployment.environment=$(OTEL_K8S_NAMESPACE),
container.name=$(OTEL_CONTAINER_NAME),
container.id=$(OTEL_K8S_CONTAINER_ID)
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 1
memory: 1Gi