This repository contains helm charts for VictoriaMetrics and VictoriaLogs.
Add a chart helm repository (can be skipped for OCI repository) #
Access a Kubernetes cluster.
Add a chart helm repository with follow commands:
|
|
List all charts and versions of vm
repository available to installation:
|
|
The command must display existing helm chart e.g.
|
|
Installing the chart #
Export default values of victoria-metrics-cluster
chart to file values.yaml
:
For HTTPS repository
1 2
helm show values vm/victoria-metrics-cluster > values.yaml
For OCI repository
1 2
helm show values oci://ghcr.io/victoriametrics/helm-charts/victoria-metrics-agent > values.yaml
Change the values according to the need of the environment in values.yaml
file.
Test the installation with command:
For HTTPS repository
1 2
helm install victoria-metrics vm/victoria-metrics-cluster -f values.yaml -n NAMESPACE --debug --dry-run
For OCI repository
1 2
helm install victoria-metrics oci://ghcr.io/victoriametrics/helm-charts/victoria-metrics-cluster -f values.yaml -n NAMESPACE --debug --dry-run
Install chart with command:
For HTTPS repository
1 2
helm install victoria-metrics vm/victoria-metrics-cluster -f values.yaml -n NAMESPACE
For OCI repository
1 2
helm install victoria-metrics oci://ghcr.io/victoriametrics/helm-charts/victoria-metrics-cluster -f values.yaml -n NAMESPACE
Validate installation #
Get the pods lists by running these commands:
|
|
Get the application by running this commands:
|
|
See the history of versions of victoria-metrics
application with command.
|
|
How to uninstall VictoriaMetrics #
Remove application with command.
|
|
Kubernetes compatibility versions #
helm charts tested at kubernetes versions from 1.28 to 1.30.