-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjaeger-wavefront.yaml
63 lines (62 loc) · 1.53 KB
/
jaeger-wavefront.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
# Need to change YOUR WAVEFRONT URL, YOUR WAVEFRONT TOKEN, and YOUR JAEGER PORT.
apiVersion: apps/v1
# Kubernetes versions after 1.9.0 should use apps/v1
# Kubernetes version 1.8.x should use apps/v1beta2
# Kubernetes versions before 1.8.0 should use apps/v1beta1
kind: Deployment
metadata:
labels:
app: wavefront-proxy
name: wavefront-proxy
name: wavefront-proxy
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: wavefront-proxy
template:
metadata:
labels:
app: wavefront-proxy
spec:
containers:
- name: wavefront-proxy
image: wavefronthq/proxy:latest
imagePullPolicy: Always
env:
- name: WAVEFRONT_URL
value: <WAVEFRONT URL>
- name: WAVEFRONT_TOKEN
value: <WAVEFRONT TOKEN>
# Jaeger Tracing Environment Variable
- name: WAVEFRONT_PROXY_ARGS
value: "--traceJaegerListenerPorts <JAEGER PORT> --traceJaegerApplicationName <CLUSTER NAME>"
ports:
- containerPort: 2878
protocol: TCP
# Jaeger Tracing Port
- containerPort: <JAEGER PORT>
protocol: TCP
securityContext:
privileged: false
---
apiVersion: v1
kind: Service
metadata:
name: wavefront-proxy
labels:
app: wavefront-proxy
namespace: default
spec:
ports:
- name: wavefront
port: 2878
protocol: TCP
# Added for Jaeger Tracing
- name: jaeger
port: <JAEGER PORT>
targetPort: <JAEGER PORT>
protocol: TCP
selector:
app: wavefront-proxy