---
title: "Deploy Grafana Agent in static mode on Kubernetes | Grafana Agent documentation"
description: "Learn how to deploy Grafana Agent in static mode on Kubernetes"
---

# Deploy Grafana Agent in static mode on Kubernetes

You can use the Helm chart for Grafana Agent to deploy Grafana Agent in static mode on Kubernetes.

## Before you begin

- Install [Helm](https://helm.sh) on your computer.
- Configure a Kubernetes cluster that you can use for Grafana Agent.
- Configure your local Kubernetes context to point to the cluster.

## Deploy

> Note
> 
> These instructions show you how to install the generic [Helm chart](https://github.com/grafana/agent/tree/main/operations/helm/charts/grafana-agent) for Grafana Agent. You can deploy Grafana Agent in static mode or flow mode. The Helm chart deploys flow mode by default.

To deploy Grafana Agent in static mode on Kubernetes using Helm, run the following commands in a terminal window:

1. Add the Grafana Helm chart repository:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   helm repo add grafana https://grafana.github.io/helm-charts
   ```
2. Update the Grafana Helm chart repository:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   helm repo update
   ```
3. Install Grafana Agent in static mode:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   helm install <RELEASE_NAME> grafana/grafana-agent --set agent.mode=static
   ```
   
   Replace the following:
   
   - *`<RELEASE_NAME>`* : The name to use for your Grafana Agent installation, such as `grafana-agent`.
   
   > Warning
   > 
   > Always pass `--set agent.mode=static` in `helm install` or `helm upgrade` commands to ensure Grafana Agent gets installed in static mode. Alternatively, set `agent.mode` to `static` in your values.yaml file.

For more information on the Grafana Agent Helm chart, refer to the Helm chart documentation on [Artifact Hub](https://artifacthub.io/packages/helm/grafana/grafana-agent).
