Sign inSign up

nytimes/drone-dd-agent

By nytimes

Updated over 2 years ago

Build versions based on https://hub.docker.com/r/tonglil/auth-gke/.

Image
0

10K+

nytimes/drone-dd-agent repository overview

ARCHIVED

This process is no longer supported, to install managed Datadog Agents in GKE clusters please see the datadog-clusters repo.

drone-dd-agent

Deploy the DataDog agent and associated resources into the datadog-agent namespace in a GKE cluster using a GCP service account JSON credential.

The service account must have the cluster-admin ClusterRoleBinding.

Based on https://github.com/tonglil/auth-gke.

Configuration

All the configuration is passed to the image through environment variables.

Available configuration options
  • TOKEN - (required, secret) GCP JSON credentials. Same as GOOGLE_CREDENTIALS
  • DD_API_KEY - (required, secret) DataDog API key
  • PROJECT - (required) name of the project the cluster is running in
  • LOCATION - (required) name of the region or zone the cluster is running in
  • CLUSTER - (required) name of the cluster to deploy the agent to
  • NAMESPACE - (optional, default datadog-agents) k8s namespace to deploy the agent to
  • AGENT_MEMORY_LIMIT - (optional, default 256Mi) agent's container memory limit
  • AGENT_CPU_LIMIT - (optional, default 200m) agent's container cpu limit
  • AGENT_MEMORY_REQUEST - (optional, default 256Mi) agent's container memory request
  • AGENT_CPU_REQUEST - (optional, default 200m) agent's container cpu request

Usage

docker run \
  -e TOKEN="$(cat service-account.json)" \
  -e PROJECT=my-project \
  -e LOCATION=us-central1-b \
  -e CLUSTER=my-cluster \
  -e DD_API_KEY=abc \
  -e NAMESPACE=datadog-agents \
  nytimes/drone-dd-agent

Example

Drone 0.5+:

pipeline:
  install-dd-agents:
    image: nytimes/drone-dd-agent
    environment:
      PROJECT: my-project
      LOCATION: us-central1-b   # zone or region
      CLUSTER: my-cluster
      NAMESPACE: datadog-agents   # optional default
      AGENT_MEMORY_LIMIT: 256Mi   # optional default
      AGENT_CPU_LIMIT: 200m       # optional default
      AGENT_MEMORY_REQUEST: 256Mi # optional default
      AGENT_CPU_REQUEST: 200m     # optional default
    secrets: [google_credentials, dd_api_key]

Releasing

Use the base image's gcloud version number as the tag:

make pull
make version

Tag summary

Content type

Image

Digest

sha256:1e4b451dd

Size

603.2 MB

Last updated

over 2 years ago

docker pull nytimes/drone-dd-agent