Google Kubernetes Engine, Agent

Supported OS Linux Mac OS Windows

Overview

Google Kubernetes Engine (GKE), a service on the Google Cloud Platform (GCP), is a hosted platform for running and orchestrating containerized applications backed by Kubernetes. GKE clusters can be monitored by the Google Cloud Platform integration as well as by the Datadog Agent running as workloads within the cluster.

Setup

Prerequisites

  1. Ensure that your role in your GCP project has the proper permissions to use GKE.

  2. Enable the Google Container Engine API for your project.

  3. Install the Google Cloud SDK and the kubectl command line tool on your local machine. Once you pair the Cloud SDK with your GCP account, you can control your clusters directly from your local machine using kubectl.

Set up the GCE integration

Install the Google Cloud Platform integration.

You can then access an out-of-the-box Google Compute Engine dashboard that displays metrics like disk I/O, CPU utilization, and network traffic.

Set up the Kubernetes integration

To further monitor your GKE cluster, install the Datadog Agent using the Datadog Helm Chart or Datadog Operator. Once deployed, the Datadog Agent and Datadog Cluster Agent monitor your cluster and the workloads on it.

GKE supports two main modes of operation that can change the level of flexibility, responsibility, and control that you have over your cluster. These different modes change how you deploy the Datadog components.

  • Standard: You manage the cluster’s underlying infrastructure, giving you node configuration flexibility.

  • Autopilot: Google provisions and manages the entire cluster’s underlying infrastructure, including nodes and node pools, giving you an optimized cluster with a hands-off experience.

Autopilot

Autopilot requires a more distinct setup for the Kubernetes installation compared to the standard installation. This type of cluster requires using the Datadog Helm chart.

Deploy a containerized version of the Datadog Agent on your Kubernetes cluster with the Helm installation of the Datadog Agent on Kubernetes. When setting your Helm datadog-values.yaml configuration, see the GKE Autopilot section on the Kubernetes Distributions for the necessary configuration changes. Most notably, set providers.gke.autopilot to true.

Admission Controller

To use Admission Controller with Autopilot, set the configMode of the Admission Controller to either service or hostip.

Because Autopilot does not allow socket mode, Datadog recommends using service (with hostip as a fallback) to provide a more robust layer of abstraction for the controller.

Further Reading