Skip to content

VMCluster: requestsLoadBalancer ignores spec.secrets and spec.configMaps #2816

Open

Description

@zasdaym

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

Activity

  1. added
    bug
    on Nov 11, 2026
  2. self-assigned this
    on Nov 11, 2026
  3. added
    waiting for release
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugwaiting for release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions