forked from ExpediaGroup/kubernetes-sidecar-injector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidecar-configmap.yaml
52 lines (52 loc) · 1.17 KB
/
sidecar-configmap.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
apiVersion: v1
kind: ConfigMap
metadata:
name: haystack-agent-sidecar
namespace: {{ .Release.Namespace}}
data:
sidecars.yaml: |
- name: haystack-agent
containers:
- name: haystack-agent
image: expediadotcom/haystack-agent
imagePullPolicy: IfNotPresent
args:
- --config-provider
- file
- --file-path
- /app/haystack/agent.conf
ports:
- containerPort: 35000
volumeMounts:
- name: agent-conf
mountPath: /app/haystack
volumes:
- name: agent-conf
configMap:
name: haystack-agent-conf-configmap
annotations:
my: annotation
labels:
my: label
---
apiVersion: v1
kind: ConfigMap
metadata:
name: haystack-agent-conf-configmap
namespace: {{ .Release.Namespace}}
data:
agent.conf: |
agents {
spans {
enabled = true
port = 35000
dispatchers {
kafka {
bootstrap.servers = "kafkasvc:9092"
producerTopic = "proto-spans"
buffer.memory = 1048576
retries = 2
}
}
}
}