File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
workshop/otel-contrib-splunk-demo/k8s_manifests Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 3030 spec :
3131 hostNetwork : true
3232 dnsPolicy : ClusterFirstWithHostNet
33+ serviceAccount : default-otel-collector
3334 serviceAccountName : default-otel-collector
3435 nodeSelector :
3536 kubernetes.io/os : linux
@@ -149,6 +150,8 @@ spec:
149150 limits :
150151 cpu : 200m
151152 memory : 500Mi
153+ securityContext :
154+ runAsUser : 0
152155 volumeMounts :
153156 - mountPath : /conf
154157 name : otel-configmap
@@ -170,14 +173,12 @@ spec:
170173 - mountPath : /hostfs/var/run/utmp
171174 name : host-var-run-utmp
172175 readOnly : true
173- - mountPath : /usr/lib/splunk-otel-collector/agent-bundle/run/collectd
174- name : run-collectd
175- readOnly : false
176+ - mountPath : /var/log
177+ name : varlog
178+ - mountPath : /var/lib/docker/containers
179+ name : varlibdockercontainers
176180 terminationGracePeriodSeconds : 600
177181 volumes :
178- - name : run-collectd
179- emptyDir :
180- sizeLimit : 25Mi
181182 - name : host-dev
182183 hostPath :
183184 path : /dev
@@ -196,6 +197,12 @@ spec:
196197 - name : host-var-run-utmp
197198 hostPath :
198199 path : /var/run/utmp
200+ - name : varlog
201+ hostPath :
202+ path : /var/log
203+ - name : varlibdockercontainers
204+ hostPath :
205+ path : /var/lib/docker/containers
199206 - name : otel-configmap
200207 configMap :
201208 name : default-otel-collector-otel-agent
You can’t perform that action at this time.
0 commit comments