CrowdStrike / falcon-helm

Helm Charts for running CrowdStrike Falcon with Kubernetes
https://artifacthub.io/packages/helm/falcon-helm/falcon-sensor
Apache License 2.0
76 stars 72 forks source link

Seeing this error : /opt/CrowdStrike/falcon-daemonset-init: No such file or directory #317

Open sagnikundu opened 2 months ago

sagnikundu commented 2 months ago

We are experiencing issues deploying falcon-sensor on Azure.

Getting this error :

kubectl logs -f falcon-sensor-daemonet-pod -n falcon-system -c init-falconstore .. Running /opt/CrowdStrike/falcon-daemonset-init -i /bin/bash: line 1: /opt/CrowdStrike/falcon-daemonset-init: No such file or directory

There are few things which we would like to highlight.

The version 1.29.1 of the chart chart doesn’t have volume mounts for the init container which is present on older version (1.26.1) of the chart deployed on our AWS clusters. We think this might be the reason for the error below, since the path or directory required during the init-container execution is absent. We need to understand what’s happening here. Below is the diff highlighted between the old and new chart.

snippet :

Older chart : 1.26.1 initContainers:

New Chart : 1.29.1 ( No volume mounts ) initContainers:

redhatrises commented 2 months ago

Hello,

Please make sure that you are using the correct sensor image as the sensor image you are using in the new chart won't work because it is the sidecar sensor and not the daemonset sensor

sagnikundu commented 2 months ago

Thanks , I could bring the daemonset up with sensor image : falcon-sensor:7.18.0-17106-1.falcon-linux.Release.US-1

I could see this directory get created : /opt/CrowdStrike , but the init container still was in crashloop. I had to create the file manually : /opt/CrowdStrike/falconstore ,with permission : 755 , to make it work.

The older chart had taken into account of creating this file which is absent on the current daemonset manifest. Not sure why this is removed.

redhatrises commented 1 month ago

/opt/CrowdStrike/falconstore should not be a directory and shouldn't have permissions 755. I would probably suggest cleaning up /opt/CrowdStrike by removing it entirely, and then redeploying. The falcon-daemonset-init takes care of the /opt handling now.