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

[kube-prometheus-stack] Enable affinity specification for node exporter #925

Closed
frvasquezjaquez opened this issue Apr 30, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@frvasquezjaquez
Copy link

Is your feature request related to a problem? Please describe.
I have an AWS cluster with EC2 and fargate nodes. When i deploy the prometheus stack chart it tries to deploy a node exporter daemon set in all the nodes, even in fargate nodes, which are serverless, so it causes that some pods stay Pending.

Describe the solution you'd like
Add the node selector or affinity tag to the value.yml so i can especify in which nodes i want to deploy the node exporters.

Additional context

  1. This is the error that im getting in the fargate nodes:
0/8 nodes are available: 3 Too many pods, 5 node(s) didn't have free ports for the requested pod ports.
  1. This is the affinitt created automatically by the helm chart:
nodeAffinity:
  requiredDuringSchedulingIgnoredDuringExecution:
    nodeSelectorTerms:
      - matchFields:
          - key: metadata.name
            operator: In
            values:
              - fargate-ip-xxx.xxxx.xxx.xxx.ec2.internal
@frvasquezjaquez frvasquezjaquez added the enhancement New feature or request label Apr 30, 2021
@stale
Copy link

stale bot commented May 31, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@xpunch
Copy link

xpunch commented Jun 9, 2021

affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: eks.amazonaws.com/compute-type
                    operator: NotIn
                    values:
                      - fargate

@stale stale bot removed the lifecycle/stale label Jun 9, 2021
@frvasquezjaquez
Copy link
Author

Excellent, thanks!

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

No branches or pull requests

2 participants