Menu

This is documentation for the next version of Agent. For the latest stable release, go to the latest version.

Open source

Deploy Grafana Agent in static mode on Kubernetes

You can deploy Grafana Agent in static mode on Kubernetes.

Deploy

To deploy Grafana Agent in static mode on Kubernetes, perform the following steps.

  1. Download one of the following manifests from GitHub and save it as manifest.yaml:

  2. Edit the downloaded manifest.yaml and replace the placeholders with information relevant to your Kubernetes deployment.

  3. Apply the modified manifest file:

    shell
    kubectl -n default apply -f manifest.yaml
Note: The manifests do not include the ConfigMaps which are necessary to run Grafana Agent.

For sample configuration files and detailed instructions, refer to Configure Kubernetes Monitoring in the Grafana Cloud documentation.

Rebuild the Kubernetes manifests

The manifests provided are created using Grafana Labs’ production Tanka configs with some default values. If you want to build the YAML file with some custom values, you must install the following applications:

Refer to the template Tanka environment for the current settings that initialize the Grafana Agent Tanka configurations.

To build the YAML files, run the /build/build.sh script, or run make example-kubernetes from the project’s root directory.