VMCluster: requestsLoadBalancer ignores spec.secrets and spec.configMaps

Open
#2,816 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@zasdaym is already working on this.

Since Nov 11, 2026.

  • #2817 by @zasdaym — merged

Assessment

This issue has not been assessed yet.

Description

bug waiting for release
Describe the bug

VMCluster.spec.requestsLoadBalancer.spec accepts secrets and configMaps, but the operator doesn't mount them into the vmclusterlb-<name> vmauth pods. Other fields like extraArgs, volumes and volumeMounts works.

To Reproduce
  1. Create a Secret:
    kubectl create secret generic lb-secret --from-literal=key=value
    
  2. Create a VMCluster with requestsLoadBalancer enabled and the secret referenced:
    apiVersion: operator.victoriametrics.com/v1beta1
    kind: VMCluster
    metadata:
      name: demo
    spec:
      retentionPeriod: "1"
      vminsert:
        replicaCount: 1
      vmselect:
        replicaCount: 1
      vmstorage:
        replicaCount: 1
      requestsLoadBalancer:
        enabled: true
        spec:
          replicaCount: 1
          secrets:
            - lb-secret
    
  3. Check the volumes of the load balancer Deployment:
    kubectl get deploy vmclusterlb-demo -o jsonpath='{.spec.template.spec.volumes[*].name}'
    
  4. The output has only vmauth-lb-config. There is no volume for lb-secret, and /etc/vm/secrets/lb-secret does not exist in the pod.
Expected behavior

The operator mounts each entry of secrets at /etc/vm/secrets/<name> and each entry of configMaps at /etc/vm/configs/<name> in the vmauth container, as the field documentation says and as it does for vminsert, vmselect and vmstorage.

Version
  • vm-operator: v0.74.1
  • Kubernetes: any version
Dominant language
Go
Stars
603
Forks
242
Avg merge
1d 14h
Merged PRs (30d)
57

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VictoriaMetrics/operator

All issues in VictoriaMetrics/operator

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.