VMCluster: requestsLoadBalancer ignores spec.secrets and spec.configMaps
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
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
- Create a Secret:
kubectl create secret generic lb-secret --from-literal=key=value - Create a VMCluster with
requestsLoadBalancerenabled 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 - Check the volumes of the load balancer Deployment:
kubectl get deploy vmclusterlb-demo -o jsonpath='{.spec.template.spec.volumes[*].name}' - The output has only
vmauth-lb-config. There is no volume forlb-secret, and/etc/vm/secrets/lb-secretdoes 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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from VictoriaMetrics/operator
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
VictoriaMetrics/operator#2854 ·
Maintainers usually reply within 1 day
-
VLAgent `spec.k8sCollector.includePodLabels: false` has no effectPossibly taken @Haleygo claimed this 25 days ago. Openbug waiting for release
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
VictoriaMetrics/operator#2772 · 1 assignee ·
Maintainers usually reply within 1 day
-
Bug: VMRule `spec.groups[].tenant` should accept an integer, not only a stringPossibly taken @megative claimed this 40 days ago. Openenhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
VictoriaMetrics/operator#2608 · 5 comments ·
Maintainers usually reply within 1 day
-
VMAlert datasource bearer token isn't documentedMay be free again @Haleygo claimed this 35 days ago, and no pull request is open. Opendocs
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
VictoriaMetrics/operator#2365 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
VictoriaMetrics/operator#2845 ·
Maintainers usually reply within 1 day
All issues in VictoriaMetrics/operator
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
uselagoon/lagoon-cli#501 · 1 reaction ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Tarektouati/made#197 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100