forked from open-telemetry/opentelemetry-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01-assert.yaml
59 lines (59 loc) · 1.51 KB
/
01-assert.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
apiVersion: v1
kind: Pod
metadata:
annotations:
instrumentation.opentelemetry.io/inject-apache-httpd: 'true'
sidecar.opentelemetry.io/inject: 'true'
labels:
app: my-apache
spec:
containers:
- env:
- name: OTEL_SERVICE_NAME
value: my-apache
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://localhost:4317
- name: OTEL_RESOURCE_ATTRIBUTES_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: OTEL_RESOURCE_ATTRIBUTES_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_PROPAGATORS
value: jaeger,b3
- name: OTEL_TRACES_SAMPLER
value: parentbased_traceidratio
- name: OTEL_TRACES_SAMPLER_ARG
value: '0.25'
- name: OTEL_RESOURCE_ATTRIBUTES
name: myapp
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
- name: otel-apache-agent
mountPath: /opt/opentelemetry-webserver/agent
- name: otel-apache-conf-dir
mountPath: /usr/local/apache2/conf
- args:
- --config=env:OTEL_CONFIG
name: otc-container
initContainers:
- name: otel-agent-source-container-clone
- name: otel-agent-attach-apache
status:
containerStatuses:
- name: myapp
ready: true
started: true
- name: otc-container
ready: true
started: true
initContainerStatuses:
- name: otel-agent-source-container-clone
ready: true
- name: otel-agent-attach-apache
ready: true
phase: Running