va-live-crawler causes high CPU and memory

Live-crawlers in each node of your IBM® Cloud Private clusters can cause high CPU and memory occupancy.

Resolving the problem

You can add CPU and memory resource limits to work around the problem.

  1. Find the following two deamonsets.

    vulnerability-advisor-process-ma-crawler
    vulnerability-advisor-live-crawler
    
  2. Edit the daemonsets to add resource limits.

    kubectl edit ds vulnerability-advisor-live-crawler -n kube-system
    kubectl edit ds vulnerability-advisor-process-ma-crawler -n kube-system
    
  3. Add your CPU and memory limits.

    resources:
            limits:
              cpu: 100m
              memory: 128Mi
            requests:
              cpu: 50m
              memory: 64Mi