monitoring

LowVirtOperatorCount

Meaning

This alert fires when only one virt-operator pod in a Ready state has been running for the last 60 minutes.

The virt-operator is the first Operator to start in a cluster. Its primary responsibilities include the following:

Impact

The virt-operator cannot provide high availability (HA) for the deployment. HA requires two or more virt-operator pods in a Ready state. The default deployment is two pods.

The virt-operator is not directly responsible for virtual machines (VMs) in the cluster. Therefore, its decreased availability does not significantly affect VM workloads.

Diagnosis

  1. Set the NAMESPACE environment variable:

    $ export NAMESPACE="$(kubectl get kubevirt -A -o custom-columns="":.metadata.namespace)"
    
  2. Check the states of the virt-operator pods:

    $ kubectl -n $NAMESPACE get pods -l kubevirt.io=virt-operator
    
  3. Review the logs of the affected virt-operator pods:

    $ kubectl -n $NAMESPACE logs <virt-operator>
    
  4. Obtain the details of the affected virt-operator pods:

    $ kubectl -n $NAMESPACE describe pod <virt-operator>
    

Mitigation

Based on the information obtained during the diagnosis procedure, try to identify the root cause and resolve the issue.

If you cannot resolve the issue, see the following resources: