Build versions based on https://hub.docker.com/r/tonglil/auth-gke/.
10K+
This process is no longer supported, to install managed Datadog Agents in GKE clusters please see the datadog-clusters repo.
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.
All the configuration is passed to the image through environment variables.
TOKEN - (required, secret) GCP JSON credentials. Same as GOOGLE_CREDENTIALSDD_API_KEY - (required, secret) DataDog API keyPROJECT - (required) name of the project the cluster is running inLOCATION - (required) name of the region or zone the cluster is running inCLUSTER - (required) name of the cluster to deploy the agent toNAMESPACE - (optional, default datadog-agents) k8s namespace to deploy the agent toAGENT_MEMORY_LIMIT - (optional, default 256Mi) agent's container memory limitAGENT_CPU_LIMIT - (optional, default 200m) agent's container cpu limitAGENT_MEMORY_REQUEST - (optional, default 256Mi) agent's container memory requestAGENT_CPU_REQUEST - (optional, default 200m) agent's container cpu requestdocker 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
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]
Use the base image's gcloud version number as the tag:
make pull
make version
Content type
Image
Digest
sha256:1e4b451dd…
Size
603.2 MB
Last updated
over 2 years ago
docker pull nytimes/drone-dd-agent