These warnings indicate that the memory resource requests specified in your Kubernetes pod template (spec.template.spec.containers.resources.requests[memory]) are using an invalid format.
Here's a breakdown:
- Invalid Unit: The unit
m is used for CPU resources (millicores), not for memory resources. Memory resources in Kubernetes should be specified in bytes or using standard suffixes like Ki, Mi, Gi, Ti, Pi, or Ei.
- "fractional byte value is invalid, must be an integer": This part of the message is a bit misleading when combined with the
m unit. It highlights that the final calculated value representing memory in bytes must be an integer. When you use an invalid unit like m for memory, Kubernetes cannot correctly parse it into a valid integer number of bytes, hence the error. The values 107374182400m and 214748364800m are being misinterpreted because of the incorrect unit.
Looking at the large numbers, 107374182400 is approximately 100 * 1024 * 1024 * 1024 (100 GiB) and 214748364800 is approximately 200 * 1024 * 1024 * 1024 (200 GiB). It seems likely that these values were intended to be memory requests like 100 GiB and 200 GiB, but the unit suffix m (for millicores) was incorrectly used instead of a memory unit like Gi.
To fix this:
You need to specify the memory requests using a valid memory unit (like Gi for Gibibytes or Mi for Mebibytes) or as a plain integer number of bytes.
For example, if you intended to request 100 GiB and 200 GiB, you should change the values to:
100Gi instead of 107374182400m
200Gi instead of 214748364800m
Alternatively, you could specify the exact byte values as integers:
107374182400 instead of 107374182400m (which is 100 * 1024 * 1024 * 1024)
214748364800 instead of 214748364800m (which is 200 * 1024 * 1024 * 1024)
Update the resources.requests.memory field in your Kubernetes manifest (like Deployment, StatefulSet, Pod, etc.) with the correct values and units.