Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate mount point #54

Closed
fjudith opened this issue Jul 21, 2020 · 4 comments · Fixed by #76
Closed

Duplicate mount point #54

fjudith opened this issue Jul 21, 2020 · 4 comments · Fixed by #76
Assignees
Labels
area/falco-chart kind/bug Something isn't working

Comments

@fjudith
Copy link

fjudith commented Jul 21, 2020

Describe the bug

Since v1.2.x, Falco pods are Crashlooping due to duplicate mountpoint error related to /var/run/falco

kubectl -n falco -l app=falco describe pods

Events:
  Type     Reason     Age                      From               Message
  ----     ------     ----                     ----               -------
  Normal   Scheduled  <unknown>                default-scheduler  Successfully assigned falco/falco-zwbxh to master02
  Normal   Pulling    71s                      kubelet, master02  Pulling image "busybox"
  Normal   Pulled     69s                      kubelet, master02  Successfully pulled image "busybox"
  Normal   Created    69s                      kubelet, master02  Created container init-pipe
  Normal   Started    69s                      kubelet, master02  Started container init-pipe
  Normal   Pulling    68s                      kubelet, master02  Pulling image "sysdig/falco-nats:latest"
  Normal   Pulled     67s                      kubelet, master02  Successfully pulled image "sysdig/falco-nats:latest"
  Normal   Created    67s                      kubelet, master02  Created container falco-nats
  Normal   Started    66s                      kubelet, master02  Started container falco-nats
  Warning  Failed     2s (x8 over 68s)         kubelet, master02  Error: Error response from daemon: Duplicate mount point: /var/run/falco
  Normal   Pulled     <invalid> (x9 over 68s)  kubelet, master02  Container image "docker.io/falcosecurity/falco:0.24.0" already present on machine

How to reproduce it

Run the following command to install Falco with grpc enabled:

helm repo add falcosecurity https://falcosecurity.github.io/charts
helm repo update
helm install --namespace falco falco --set falco.grpc.enabled=true falcosecurity/falco

Expected behaviour

v1.1.10 is working fine.
shared-pipe and grpc-socket-dir are both pointing to the /var/run/falco directory.

spec:
  volumes:
    - name: shared-pipe
      emptyDir: {}
    - name: grpc-socket-dir
      hostPath:
        path: /var/run/falco
        type: ''
...
  containers:
      volumeMounts:
        - name: shared-pipe
          mountPath: /var/run/falco/
        - name: grpc-socket-dir
          mountPath: /var/run/falco

Environment

Kubernetes v1.18.4

  • Falco version:
    v0.24.0
  • System info:
  • Cloud provider or hardware configuration: Hetzner Cloud
  • OS: Ubuntu 20.04 Focal Fossa
  • Installation method: Kubernetes
@fjudith fjudith added the kind/bug Something isn't working label Jul 21, 2020
@leogr
Copy link
Member

leogr commented Jul 21, 2020

/assign

@fjudith
Copy link
Author

fjudith commented Jul 21, 2020

I found a temporary workaround by disabling the Unix socket and switching back to the old TLS connection.

Notice that i'm enabling GRPC in order to use the falco-exporter.

falco values.yaml

falco:
  grpc:
  enabled: true
  threadiness: 0

  # gRPC unix socket with no authentication
  unixSocketPath: ""
  # unixSocketPath: "unix:///var/run/falco/falco.sock"

falco-exporter values.yaml

falco:
  # grpcUnixSocketPath: "unix:///var/run/falco/falco.sock"
  grpcUnixSocketPath: ""
  grpcHostname: "falco-grpc.falco.svc.cluster.local"
  grpcPort: 5060

@leogr
Copy link
Member

leogr commented Jul 21, 2020

Hey @fjudith

Thank you for reporting this problem.

I will work on this shortly.

@leogr
Copy link
Member

leogr commented Jul 22, 2020

Hey @fjudith

Could you try my PR #55 please?

It should fix this problem, let me know!

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/falco-chart kind/bug Something isn't working
Projects
None yet
2 participants