Closed
Description
Describe the bug
The monitoring exporter not working for mongoDB while it does work for all other add-ons, even though disableExporter
is set to false
Kubernetes: v1.32.4-gke.1236007
KubeBlocks: 0.9.3
kbcli: 0.9.3
To Reproduce
Steps to reproduce the behavior:
- create mongoDB replicaset using
kbcli cluster create mongodb --mode='replicaset' --replicas=3 --namespace=demo
- one the cluster is healthy, update the cluster with
kbcli cluster update lupin93 -n demo --disable-exporter=true
- check the pods:
~ % kubectl get pods -n demo
NAME READY STATUS RESTARTS AGE
lupin93-mongodb-0 2/2 Running 0 4m48s
lupin93-mongodb-1 2/2 Running 0 4m24s
lupin93-mongodb-2 2/2 Running 0 4m
~ % kubectl get pods lupin93-mongodb-0 -n demo -o jsonpath='{.spec.containers[*].name}*'
mongodb lorry
- check the number of containers, it only contains mongoDB and lorry.
Expected behavior
when disableExporter is set to false, it should run mongo-exporter also.