Tortoise updates pod resource requests while VPA is not ready
Encountered an issue where a pod was deployed and tortoise changed the memory request, causing pod to OOM. Since pod OOMs immediately after creation, VPA could not record cpu resource values before OOM. This causes cpu values in vpa to be 0 and tortoise fails to reconcile with VPA not ready. This also prevents tortoise from respecting minAllocatedResources field
Original pod memory request: 12288M
Updated pod memory request: 128M
Resource Policy: Container Name: publicapi-graphql Min Allocated Resources: Cpu: 6 Memory: 12288M
Container Resource Requests: Container Name: publicapi-graphql Resource: Cpu: 1 Memory: 128M Container Name: istio-proxy Resource: Cpu: 500m Memory: 256M
Screenshot of VPA recommendations
Screenshot of tortoise conditions
Tortoise should take in changes to spec before applying any changes to pods/deployments. Container Resource Request field should be updated with minAllocatedResources taken into consideration after reading current requests from deployment spec