- The
spec.containers[].resources.requests.cpu
is converted to its core value, which is potentially fractional, and multiplied by 1024. The greater of this number or 2 is used as the value of the--cpu-shares
flag in the docker run command. - The
spec.containers[].resources.limits.cpu
is converted to its millicore value and multiplied by 100. The resulting value is the total amount of CPU time in microseconds that a container can use every 100ms. A container cannot use more than its share of CPU time during this interval.
Last active
November 25, 2021 14:22
-
-
Save aserrallerios/fd9ac4cba35392b96ec7b05bbcffeefa to your computer and use it in GitHub Desktop.
How CPU works in Kubernetes Pods
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment