-
Notifications
You must be signed in to change notification settings - Fork 105
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
Clarification on "blessed" approach for running multiple different datadog agent setups within a single cluster #1280
Comments
Hi @dlmather, thanks for reaching out. I'm leaning towards recommending DAPs from the description you've given so far, but would you be willing to share your use case with us? DAPs can only override settings in the node agent, so I want to make sure I'm not suggesting this if it won't work for the changes you'd like to make. We're adding the ability to override env vars in DAPs in v1.8.0 of the operator, which we expect to start qa for within the coming weeks. While we don't have label overrides available for DAPs yet, I can add a feature request in our backlog for that. |
Yeah, happy to share our use-case and thanks for taking a look:
In terms of the labels, that requirement is a little bit less certain and we have a few other options there, but it's slightly different from the env var. We use a label selector to attach pod-level AWS Security group policy to pods, we have different requirements for the security group policy that we want for datadog-agent pods that are running on the regular hosts vs the egress-proxy hosts. Datadog Agents on the regular hosts should only be able to talk to the egress proxy, datadog agents on the egress proxy should be able to talk out to the public internet. Since labels and selectors are what are used to drive the security groups that get attached in our system that would require us to set different labels on the agents based on the hosts they're running on. |
In general, if we can override the env vars via the DAPs that should very nicely meet at least the first requirement |
Thanks for the explanation! It sounds like DAPs could work for your case once env vars are supported in 1.8.0. I've also cleared adding label overrides to DAPs for 1.8.0 with the team so we'll try to get a PR for that in soon. |
Great! Thanks for that update, we'll look forward to that release then. |
@dlmather Hi, operator v1.8.0 was released recently that supports overrides for node agent labels and env vars for DAPs. We have docs on DAPs here to help get you started: https://github.com/DataDog/datadog-operator/blob/main/docs/datadog_agent_profiles.md. It's still in beta so it comes with the caveats that we don't recommend using it in production environments and that the CRD could have breaking changes in the future. Let me know if you have any questions about profiles that I can help with |
Describe what happened:
I need to run multiple (currently just two) different datadog-agent setups within a single cluster with very very slight variations. Ideally all I need that's different between the setups is different node selectors / affinity (so they don't overlap), slightly different labels, and one different env var. Everything else can be the same. It's not clear to me how to easily make this work with the datadog operator:
I'm seeking clarification on what the right path to configure this should be based on my requirements. For additional context, we deploy the datadog-operator currently through helm via the terraform helm add-on. If it will help for my use-case I can upgrade to any version, currently running a somewhat older one.
The text was updated successfully, but these errors were encountered: