Kubernetes Resource Requests and Limits
July 29, 2022•202 words
When scheduler tries to schedule a pod, k8s checks for pod's resource requirements and places on node which has sufficient resources
By default container requests for 0.5 CPU and 256 Mi of RAM for getting scheduled, this can be modified by adding resources section under spec of pod yaml definition
...
spec
...
resources:
requests:
memory: "1Gi"
cpu: 1
1 CPU = 1000m = 1 vCPU = 1 AWS vCPU = 1 GCP core = 1 Azure core = 1 Hyperthread. m is millicore
It can as low as 0.1 which...
Read post