Resource requests & limits
Në shqip: Kërkesat dhe kufijtë e burimeve
ShpjegimiSQ
Çdo kontejner duhet të deklarojë sa CPU dhe RAM i duhen (requests) dhe sa mund të përdorë maksimalisht (limits). Po kaloi kufirin e memories, Kubernetes e vret me gabimin OOMKilled.
EnglishEN
Every container should declare how much CPU and RAM it needs (requests) and the most it may use (limits). If it exceeds the memory limit, Kubernetes kills it with an OOMKilled error.
Si ta mendosh
Si të rezervosh një tavolinë për 4 dhe të mos lejohen më shumë se 6 njerëz.
Lexoje në anglisht
Like booking a table for 4 with a maximum of 6 people.
Shembull kodiyaml
resources:
requests: { cpu: 250m, memory: 256Mi }
limits: { memory: 512Mi }