← Back to Pull requests

[Backport v1.32] [FX-1133] Detect Nebius and default kubelet.tlsVerify to false #3733

Closed
unknown closed this pull request without merging on Nov 05, 2026 17:17 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 14:57 UTC
Author

Backport 24ca8f78a90d8214d6b73ccd4a6bfe4d56f37a64 from #3722.

___

What does this PR do?

Adds a nebius cluster provider, auto-detected from the nodes, and defaults the node Agent's kubelet.tlsVerify to false on it, the same way the openshift provider does.

  • Detection (pkg/kubernetes/provider.go): a node whose spec.providerID starts with nebius:// (the Nebius cloud controller sets nebius://computeinstance-<id>) resolves to nebius. It is checked last, after Talos and the label-derived providers, because it identifies the infrastructure rather than the distribution; an OpenShift or Talos cluster running on Nebius keeps its own provider.

  • Node cache (pkg/config/config.go): the Node transform now keeps Spec.ProviderID, for the same reason it keeps Status.NodeInfo.OSImage for Talos: the detector's node-list fallback reads from that cache.

  • Default (defaults.DefaultProviderSpecificConfig): on nebius, global.kubelet.tlsVerify defaults to false via DefaultBooleanIfUnset. An explicit user value (true or false) always wins. Other providers are unchanged: the field stays unset and no DD_KUBELET_TLS_VERIFY is emitted.

  • Docs (docs/providers.md): detection and supported-provider rows added.
  • As with every detected provider, users can opt out with agent.datadoghq.com/cluster-provider: default on the DatadogAgent.

    Motivation

    On Nebius Managed Kubernetes the kubelet serving certificate isn't signed by a CA the Agent trusts, so node Agents crashloop unless kubelet.tlsVerify: false is set. The Agent also takes its hostname from the kubelet, so this fixes hostname resolution too; no DD_HOSTNAME is needed (confirmed on a live cluster).

    Managed Cloud Instrumentation installs the Operator in managed-install mode on Nebius, where the DatadogAgent spec is pinned and can't carry this override. Today it works around this with its own Linux DatadogAgentProfile, which blocks customers' own profiles. Container Platform suggested detecting Nebius from a node attribute in the Operator instead: Slack thread.

    Additional Notes

    The nebius provider only changes this one default. It has no provider-capability or feature-support entries, so all features behave as on default.

    Minimum Agent Versions

    None.

    Describe your test plan

    Unit tests:

  • pkg/kubernetes: nebius:// providerID detects nebius; other clouds' providerIDs and a look-alike nebiusfoo:// prefix don't; OpenShift labels and a Talos osImage take precedence; node-list detection finds a Nebius node.

  • pkg/introspection: the detector resolves nebius from both the Operator's own node and the node-list fallback.

  • pkg/config: the Node cache transform keeps Spec.ProviderID for introspection, profiles and the untaint controller.

  • defaults: on nebius, unset defaults to false; an explicit true or false is preserved.
  • go test ./... and make lint pass locally.

    On a Nebius cluster: deploy a DatadogAgent without kubelet.tlsVerify, then check that status.clusterProvider is nebius, that the node Agent has DD_KUBELET_TLS_VERIFY=false, and that it is healthy. Then set kubelet.tlsVerify: true and check that the env var follows the user's value.

    Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies

  • PR has a milestone or the qa/skip-qa label

  • All commits are signed (see: [signing commits][1])
  • [1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

    🤖 Generated with Claude Code

    Diff: 472 lines (+354 / -118) across 5 files Reviewer: levan-m Review duration: 140m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.69) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 472 lines diff across 5 files
    0.69
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.368
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.069
    Real PR Conversation Timeline
    1 comments
    "Review active on #3733"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.9% (HIGH) · Higher = larger blast radius
    68.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.2% · Safe to merge
    27.2%