During testing I've observed that the VictoriaMetrics Operator sometimes fails to convert Prometheus Operator CRs like PodMonitor and ServiceMonitor to their VictoriaMetrics equivalents when it is first installed in a kube cluster in which the Prometheus Operator resources already exist.
Restarting the operator works, causing the objects to be created as expected.
To reproduce:
- Install Prometheus Operator
- Create a PodMonitor, ServiceMonitor, etc
- Install VM Operator (I used the Helm chart)
- Observe that VM Operator CRs were not auto created
kubectl rollout restart the vm operator
- Observe that CM operator CRs are now created
I used this Helm values (.txt extension because of GitHub's awful filename based attachment filters):
vmoperator-values-yaml.txt