IBM Cloud Docs
Why does the Block storage plug-in Helm chart give CPU throttling warnings?

Why does the Block storage plug-in Helm chart give CPU throttling warnings?

Classic infrastructure

When you install the Block storage Helm chart, the installation gives a warning similar to the following:

Message: 50% throttling of CPU in namespace kube-system for container ibmcloud-block-storage-driver-container in pod ibmcloud-block-storage-driver-1abab.

The default Block storage plug-in resource requests are not sufficient. The Block storage plug-in and driver are installed with the following default resource request and limit values.

plugin:
  resources:
    requests:
      memory: 100Mi
      cpu: 50m
    limits:
      memory: 300Mi
      cpu: 300m
driver:
  resources:
    requests:
      memory: 50Mi
      cpu: 25m
    limits:
      memory: 200Mi
      cpu: 100m

Remove and reinstall the Helm chart with increased resource requests and limits.

  1. Remove the Helm chart.

    helm uninstall <release_name> iks-charts/ibmcloud-block-storage-plugin -n <namespace>
    
  2. Reinstall the Helm chart and increase the resource requests and limits by using the --set option when running helm install. The following example command sets the plugin.resources.requests.memory value to 200Mi and the plugin.resources.requests.cpu value to 100m. You can pass multiple values by using the --set option for each value that you want to pass.

    helm install <release_name> iks-charts/ibmcloud-block-storage-plugin -n <namespace> --set plugin.resources.requests.memory=200Mi --set plugin.resources.requests.cpu=100m