Kubernetes Term

Resouce

  • spec.containers[].resources.limits.cpu
  • spec.containers[].resources.limits.memory
  • spec.containers[].resources.requests.cpu
  • spec.containers[].resources.requests.memory

Meaning of memory

128974848, 129e6, 129M, 123Mi

123Mi = 123 1024 1024 = 128,974,848 Bytes

129M = 129 1000 1000 = 129,000,000 Bytes

举例说明:

当我们在Deployment设置memory = 500Mi时候,在Kubernetes显示使用内存 524.29 MB = (500Mi 1024 1024) / 1000 / 1000 = 524.288 MB

Meaning of CPU

Limits and requests for CPU resources are measured in cpu units. One cpu, in Kubernetes, is equivalent to:

  • 1 AWS vCPU
  • 1 GCP Core
  • 1 Azure vCore
  • 1 IBM vCPU
  • 1 Hyperthread on a bare-metal Intel processor with Hyperthreading

A request with a decimal point, like 0.1, is converted to 100m by the API.

Kind

ReplicationController

A ReplicationController ensures that a specified number of pod replicas are running at any one time. In other words, a ReplicationController makes sure that a pod or a homogeneous set of pods is always up and available.

ReplicaSet

Deployment