How to modify resource limits for hostplumber pods?
Problem
By default, host-plumber pods have CPU limits sets to 100m. Due to CPU throttling, need to increase the CPU limit.
Environment
- Plaform9 Managed Edge Cloud - v-5.3.0-2075501
Procedure
Steps to increase the CPU limit
- Exec in to the
Luigi controller managerpod.
# kubectl exec -it <luigi-controller-manager_pod_name> -c manager -n <namespace> -- bash- Go to directory
/etc/plugin_templates/pf9-hostplumber.There you will havehostplumber.yamlfile.
bash-5.1# cd /etc/plugin_templates/pf9-hostplumberbash-5.1# pwd/etc/plugin_templates/pf9-hostplumberbash-5.1# lshostplumber.yaml- Edit the
hostplumber.yaml and set the new CPU limit
resources: requests: cpu: "50m" memory: "50Mi" limits: cpu: "200m" <--- New Value memory: "125Mi"Additional Information
This is only a temporary workaround. If the Luigi controller manager pods are restarted, then the modification will be lost. RFE- 6022 is created to track the requirement to have a proper method to perform modification on add-ons.
Was this page helpful?