DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
349 stars 1.02k forks source link

Support for sidecar #1111

Open brettcurtis opened 1 year ago

brettcurtis commented 1 year ago

Describe what happened:

Setting up Database Monitoring for Google Cloud SQL managed Postgres mentions the use of a proxy here however I'm unable to add a sidecar to the cluster agent using the helm charts. Google recommends this approach for many reasons and we'd like to continue implementing the sidecar approach for Datadog as well.

Describe what you expected:

edit - Working with support I understand this needs to be on the node agent not the cluster agent since the node agent is the agent that will connect to SQL and run the checks.

I'd like to be able to define a sidecar, something like this:

agents:
  image:
    name: agent
    tag: 7.45.0

  containers:
    agent:
      resources:
        requests:
          cpu: 200m
          memory: 512Mi
        limits:
          cpu: 200m
          memory: 512Mi

  sidecarContainers:
    name: cloud-sql-proxy
    image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.3.0
    args:
      - "--private-ip"
      - "--port=6000"
    securityContext:
      runAsNonRoot: true
    resources:
      requests:
        memory: "2Gi"
        cpu: "1"
brettcurtis commented 1 year ago

Any update on this one, the PRs been baking for a while, thanks!