Closed SitronNO closed 1 year ago
Please check the permission of the /var/addon
folder. It appears you have a typo and worked with /var/addons
.
Please check the permission of the
/var/addon
folder. It appears you have a typo and worked with/var/addons
.
Sorry, a typo from me. This is the permissions on both nodes in the cluster:
$ ls -ld /var/ /var/addon/ /var/addon/splunk/ /var/addon/splunk/otel_pos/
drwxr-xr-x. 20 root root 4096 Aug 30 08:56 /var/
drwxrwxrwx. 3 root root 20 Aug 30 08:56 /var/addon/
drwxrwxrwx. 3 root root 22 Aug 30 08:56 /var/addon/splunk/
drwxrwxrwx. 2 root root 6 Aug 30 08:56 /var/addon/splunk/otel_pos/
Hey,
Just to be sure - /var/addon/splunk/otel_pos/receiver_filelog_
specifically have the same permissions as well?
rke2 is not currently officially supported. We can take the time to reproduce and work with you towards support. Please file a Splunk Idea at https://ideas.splunk.com and contact your account representative to get started.
@SitronNO All I had to do to make it work with RKE2 is add privileged=true to the securityContext. I'll have to make a patch file though as it seems you can't add additional securityContext options to the values file without the helm update erroring out.
What happened?
Description
Installed Splunk OpenTelemetry Collector for Kubernetes via helm chart, but the Pods will not start, and exists with an error
Steps to Reproduce
splunk-otel
) and change context to use the new namespace (kubectl config set-context --current --namespace=splunk-otel
)splunk-otel.yml
(see content below)helm -n splunk-otel install my-splunk-otel-collector -f splunk-otel.yml splunk-otel-collector-chart/splunk-otel-collector
Expected Result
See the Pod's running and logs in Splunk
Actual Result
Both Pod's are crashing:
See logs below.
As a test, I chmod'ed
/var/addon
on both my nodes and all subdirectories to 0777, deleted the pods, but it did not help.Chart version
0.83.0
Environment information
Environment
Cloud: Non, on-prem install of RKE2 k8s version: v1.25.13+rke2r1 OS: Rocky Linux 9.2
Chart configuration
Log output
Additional context
No response