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

Feature: Add option to limit the Container Sensor to Fargate Pods #134

Open
CrisNevares opened this issue Jun 6, 2022 · 3 comments
Open

Comments

@CrisNevares
Copy link

Currently, if an Amazon EKS Cluster contains both worker nodes and Fargate nodes/pods, the only way to achieve full coverage of the cluster using the falcon-sensor is to inject the Container Sensor as a sidecar to all pods.

Instead, we would like to be able to deploy both the node sensor and the container sensor as part of the same helm installation. This can be achieved by limiting the container sensor to those Fargate pods by adding a toleration to the falcon-sensor-injector Deployment spec. For example:

    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: kubernetes.io/os
                operator: In
                values:
                - linux
              - key: eks.amazonaws.com/compute-type
                operator: In
                values:
                - fargate
@redhatrises
Copy link
Contributor

redhatrises commented Jun 6, 2022

Just to confirm. You want the node sensor to only work on EKS nodes, and the sidecar to only deploy to pods on Fargate nodes whereas today the sidecar sensor will enforce on every pod across an entire cluster. Am I understanding the ask correctly?

@hazcod
Copy link

hazcod commented Jun 16, 2022

I think we need to be able to customize the nodeSelector, we are having the same issue for deploying falcon to a separate node pool.

@CrisNevares
Copy link
Author

Just to confirm. You want the node sensor to only work on EKS nodes, and the sidecar to only deploy to pods on Fargate nodes whereas today the sidecar sensor will enforce on every pod across an entire cluster. Am I understanding the ask correctly?

Yep! That's exactly right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants