The VictoriaLogs multilevel Helm chart deploys global read for multiple storage groups.
Prerequisites #
Before installing this chart, ensure your environment meets the following requirements:
- Kubernetes cluster - A running Kubernetes cluster with sufficient resources
- Helm - Helm package manager installed and configured
Additional requirements depend on your configuration:
- Persistent storage - Required if you enable persistent volumes for data retention (enabled by default)
- kubectl - Needed for cluster management and troubleshooting
For installation instructions, refer to the official documentation:
Quick start #
The chart deploys VictoriaLogs global read entrypoint for multi-level cluster setup . It deploys the following components according to VictoriaLogs cluster architecture :
vmauthprovides balancing acrossvlselectinstancesvlselectprovides API for querying the ingested logs
This chart is not self-sufficient, it’s a building block for multi-level cluster setup that configures global read endpoint for multiple VictoriaLogs clusters.
Check VictoriaLogs Multi-level component below:
graph TD
Users["Users/Grafana/vlogscli"] --> VLG
subgraph VLG["VictoriaLogs Multi-level"]
AUTH["VMAuth LB"] --> VLQ1["vlselect-1"]
AUTH["VMAuth LB"] --> VLQ2["vlselect-2"]
end
VLQ1 --> VL1["VictoriaLogs Cluster-1"]
VLQ1 --> VL2["VictoriaLogs Cluster-2"]
VLQ1 --> VL3["VictoriaLogs Cluster-3"]
VLQ2 --> VL1["VictoriaLogs Cluster-1"]
VLQ2 --> VL2["VictoriaLogs Cluster-2"]
VLQ2 --> VL3["VictoriaLogs Cluster-3"]Chart has the only required parameter .Values.storageNodes, which defines list of all endpoints to query data from.
Let’s deploy multilevel chart that points to vlselect-1, vlselect-2 and vlselect-3 nodes.
If there no VictoriaLogs cluster configured yet, please check
victoria-logs-cluster chart quick start section
export NAMESPACE=logging
# Install victoria-logs-multicluster chart
helm install vlm vm/victoria-logs-multilevel --namespace $NAMESPACE --wait \
--set "storageNodes={vlselect-1,vlselect-2,vlselect-n}"
To access the data within the cluster, use the vmauth address: http://vlm-victoria-logs-multilevel-vmauth.logging.svc.cluster.local:8427.
You can use this address as Data Source URL in Grafana.
The vmui interface is available at: http://vlm-victoria-logs-multilevel-vmauth.logging.svc.cluster.local:8427/select/vmui/.
To uninstall these charts, run: helm uninstall vlm collector.
For finer control and easier maintenance, it is recommended to set these
values in a separate values file and use it during installation.
See
how to install victoria-logs-single
for an example.
You can do this later if you want to configure more settings than shown in the default example.
How to install #
Access a Kubernetes cluster.
Setup chart repository (can be omitted for OCI repositories) #
Add a chart helm repository with follow commands:
helm repo add vm https://victoriametrics.github.io/helm-charts/
helm repo update
List versions of vm/victoria-logs-multilevel chart available to installation:
helm search repo vm/victoria-logs-multilevel -l
Install victoria-logs-multilevel chart
#
Export default values of victoria-logs-multilevel chart to file values.yaml:
For HTTPS repository
helm show values vm/victoria-logs-multilevel > values.yamlFor OCI repository
helm show values oci://ghcr.io/victoriametrics/helm-charts/victoria-logs-multilevel > values.yaml
Change the values according to the need of the environment in values.yaml file.
Consider setting .Values.nameOverride to a small value like vlm to avoid hitting resource name limits of 63 characters
Test the installation with command:
For HTTPS repository
helm install vlm vm/victoria-logs-multilevel -f values.yaml -n NAMESPACE --debugFor OCI repository
helm install vlm oci://ghcr.io/victoriametrics/helm-charts/victoria-logs-multilevel -f values.yaml -n NAMESPACE --debug
Install chart with command:
For HTTPS repository
helm install vlm vm/victoria-logs-multilevel -f values.yaml -n NAMESPACEFor OCI repository
helm install vlm oci://ghcr.io/victoriametrics/helm-charts/victoria-logs-multilevel -f values.yaml -n NAMESPACE
Get the pods lists by running this commands:
kubectl get pods -A | grep 'vlm'
Get the application by running this command:
helm list -f vlm -n NAMESPACE
See the history of versions of vlm application with command.
helm history vlm -n NAMESPACE
How to uninstall #
Remove application with command.
helm uninstall vlm -n NAMESPACE
Documentation of Helm Chart #
Install helm-docs following the instructions on this
tutorial
.
Generate docs with helm-docs command.
cd charts/victoria-logs-multilevel
helm-docs
The markdown generation is entirely go template driven. The tool parses metadata from charts and generates a number of sub-templates that can be referenced in a template file (by default README.md.gotmpl). If no template file is provided, the tool has a default internal template that will generate a reasonably formatted README.
Parameters #
The following tables lists the configurable parameters of the chart and their default values.
Change the values according to the need of the environment in victoria-logs-multilevel/values.yaml file.
| Key | Description |
|---|---|
| (object)common for all components image configuration |
| (list)Add extra specs dynamically to this chart |
| (object)k8s cluster domain suffix, uses for building storage pods’ FQDN. Details are here |
| (object)Openshift security context compatibility configuration |
| (string)Image registry, that can be shared across multiple helm charts |
| (list)Image pull secrets, that can be shared across multiple helm charts |
| (string)Override chart name |
| (bool)Print information after deployment |
| (object)Service account annotations |
| (bool)mount API token to pod directly |
| (bool)Specifies whether a service account should be created |
| (object)Service account labels |
| (string)The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| (list)Storage nodes for multilevel setuo |
| (object)Pod affinity |
| (object)Deployment annotations |
| (string)Container workdir |
| (bool)Enable deployment of vlselect component. |
| (list)Additional environment variables (ex.: secret tokens, flags). Check here for details. |
| (list)Specify alternative source for env variables |
| (object)Extra command line arguments for vlselect component |
| (list)Extra containers to run in a pod with vlselect |
| (object)Deployment additional labels |
| (list)Extra Volume Mounts for the container |
| (list)Extra Volumes for the pod |
| (string)Overrides the full name of vlselect component |
| (object)Behavior settings for scaling by the HPA |
| (bool)Use HPA for vlselect component |
| (int)Maximum replicas for HPA to use to to scale the vlselect component |
| (list)Metric for HPA to use to scale the vlselect component |
| (int)Minimum replicas for HPA to use to scale the vlselect component |
| (string)Image pull policy |
| (string)Image registry |
| (string)Image repository |
| (string)Image tag override Chart.AppVersion |
| (string)Image tag suffix, which is appended to |
| (object)Ingress annotations |
| (bool)Enable deployment of ingress for vlselect component |
| (object)Ingress extra labels |
| (list)Array of host objects |
| (string)Ingress controller class name |
| (string)Ingress path type |
| (list)Array of TLS objects |
| (list)Init containers for vlselect |
| (object)Specify pod lifecycle |
| (string)Override default |
| (object)Pod’s node selector. Details are here |
| (object)Pod’s annotations |
| (object)See |
| (bool)See |
| (object)Pod’s additional labels |
| (object)Pod’s security context. Details are here |
| (string)vlselect http port name |
| (string)Name of Priority Class |
| (object)Readiness & Liveness probes |
| (object)vlselect liveness probe |
| (object)vlselect readiness probe |
| (object)vlselect startup probe |
| (int)Count of vlselect pods |
| (object)Resource object. Details are here |
| (object)HTTPRoute annotations |
| (bool)Enable deployment of HTTPRoute for select component |
| (list)Extra rules to prepend to route. This is useful when working with annotation based services. |
| (list)Filters for a default rule in HTTPRoute |
| (list)Array of hostnames |
| (object)HTTPRoute extra labels |
| (list)Matches for a default rule in HTTPRoute |
| (list)HTTPGateway objects refs |
| (object)Check here for details. |
| (object)Service annotations |
| (string)Service ClusterIP |
| (bool)Create vlselect service |
| (list)Service external IPs. Details are here |
| (string)Service external traffic policy. Check here for details |
| (list)Extra service ports |
| (string)Health check node port for a service. Check here for details |
| (list)List of service IP families. Check here for details. |
| (string)Service IP family policy. Check here for details. |
| (object)Service labels |
| (string)Service load balancer IP |
| (list)Load balancer source range |
| (int)Service port |
| (string)Target port |
| (string)Service traffic distribution. Details are here |
| (string)Service type |
| (object) |
| (int)Pod’s termination grace period in seconds |
| (list)Array of tolerations object. Details are here |
| (list)Pod topologySpreadConstraints |
| (object)VMServiceScrape annotations |
| (bool)Enable VMServiceScrape for vlselect component, which is managed by vm-operator. |
| (object)VMServiceScrape labels |
| (string)Target namespace of VMServiceScrape manifest |
| (string) |
| (bool)Create ServiceMonitor instead of VMServiceScrape, which is managed by prometheus-operator |
| (object)Pod affinity |
| (object)VMAuth annotations |
| (object) |
| (string)VMAuth configuration secret name |
| (string)Container workdir |
| (bool)Enable deployment of vmauth component, to help better balance the read and write requests to vlselect components. With vmauth enabled, please also set |
| (list)Additional environment variables (ex.: secret tokens, flags). Check here for details |
| (list)Specify alternative source for env variables |
| (object)Extra command line arguments for vmauth component |
| (list)Extra containers to run in a pod with vmauth |
| (object)VMAuth additional labels |
| (list)Extra Volume Mounts for the container |
| (list)Extra Volumes for the pod |
| (string)Overrides the full name of vmauth component |
| (object)Behavior settings for scaling by the HPA |
| (bool)Use HPA for vmauth component |
| (int)Maximum replicas for HPA to use to to scale the vmauth component |
| (list)Metric for HPA to use to scale the vmauth component |
| (int)Minimum replicas for HPA to use to scale the vmauth component |
| (string)Image pull policy |
| (string)Image registry |
| (string)Image repository |
| (string)Image tag override the default Chart.AppVersion, which is for vlogs components |
| (object)Ingress annotations |
| (bool)Enable deployment of ingress for vmauth component |
| (object) |
| (list)Array of host objects |
| (string)pathType is only for k8s >= 1.1= |
| (list)Array of TLS objects |
| (list)Init containers for vmauth |
| (object)Specify pod lifecycle |
| (string)Override default |
| (object)Pod’s node selector. Details are here |
| (object)Pod’s annotations |
| (object)See |
| (object)VMAuth pod labels |
| (object)Pod’s security context. Details are here |
| (string)VMAuth http port name |
| (string)Name of Priority Class |
| (object)VMAuth liveness probe |
| (object)VMAuth readiness probe |
| (object)VMAuth startup probe |
| (int)Count of vmauth pods |
| (object)Resource object |
| (object)HTTPRoute annotations |
| (bool)Enable deployment of HTTPRoute for vmauth component |
| (list)Extra rules to prepend to route. This is useful when working with annotation based services. |
| (list)Filters for a default rule in HTTPRoute |
| (list)Array of hostnames |
| (object)HTTPRoute extra labels |
| (list)Matches for a default rule in HTTPRoute |
| (list)HTTPGateway objects refs |
| (object)Check here for details. |
| (object)Service annotations |
| (string)Service ClusterIP |
| (bool)Create VMAuth service |
| (list)Service External IPs. Details are here |
| (string)Service external traffic policy. Check here for details |
| (list)Extra service ports |
| (string)Health check node port for a service. Check here for details |
| (list)List of service IP families. Check here for details. |
| (string)Service IP family policy. Check here for details. |
| (object)Service labels |
| (string)Service load balancer IP |
| (list)Load balancer source range |
| (int)Service port |
| (string)Target port |
| (string)Service traffic distribution. Details are here |
| (string)Service type |
| (object)VMAuth Deployment strategy |
| (list)Array of tolerations object. Details are here |
| (list)Pod topologySpreadConstraints |
| (object)VMServiceScrape annotations |
| (bool)Enable VMServiceScrape for vmauth component, which is managed by vm-operator. |
| (object)VMServiceScrape labels |
| (string)Target namespace of VMServiceScrape manifest |
| (string) |
| (bool)Create ServiceMonitor instead of VMServiceScrape, which is managed by prometheus-operator |