Deploy Grafana Alloy on Kubernetes
Alloy can be deployed on Kubernetes by using the Helm chart for Alloy.
Before you begin
- Install Helm on your computer.
- Configure a Kubernetes cluster that you can use for Alloy.
- Configure your local Kubernetes context to point at the cluster.
Deploy
To deploy Alloy on Kubernetes using Helm, run the following commands in a terminal window:
Add the Grafana Helm chart repository:
helm repo add grafana https://grafana.github.io/helm-charts
Update the Grafana Helm chart repository:
helm repo update
Create a namespace for Alloy:
kubectl create namespace <NAMESPACE>
Replace the following:
<NAMESPACE>
: The namespace to use for your Alloy installation, such asalloy
.
Install Alloy:
helm install --namespace <NAMESPACE> <RELEASE_NAME> grafana/alloy
Replace the following:
<NAMESPACE>
: The namespace created in the previous step.<RELEASE_NAME>
: The name to use for your Alloy installation, such asalloy
.
Verify that the Alloy pods are running:
kubectl get pods --namespace <NAMESPACE>
Replace the following:
<NAMESPACE>
: The namespace used in the previous step.
You have successfully deployed Alloy on Kubernetes, using default Helm settings.