Failed to schedule Fluentd pods

The Fluentd daemonset is unable to schedule pods.

Symptoms

You might see the following error message:

Warning FailedScheduling 4s (x12 over 4m50s) default-scheduler 0/4 nodes are available: 1 Insufficient memory, 3 node(s) didn't match node selector.

Causes

The cluster nodes might have insufficient CPU.

Resolving the problem

Remove the resources specification from the daemonset.

  1. Install kubectl. For more information, see Installing the Kubernetes CLI (kubectl).

  2. Get the audit logging daemonset name.

    kubectl get ds | grep audit
    
  3. Edit the daemonset.

    kubectl edit ds <daemonset-name>
    
  4. Delete the resources specification.

    resources:
     limits:
       cpu:    300m
       memory: 512Mi