Home > Back-end >  How to estimate Kubernetes Resources for a Pod
How to estimate Kubernetes Resources for a Pod

Time:11-11

Managing Resources for Containers.

When you specify a Pod, you can optionally specify how much of each resource a Container needs. The most common resources to specify are CPU and memory (RAM); there are others.

Kubernetes defined a special metrics for CPU and Memory allocation for a Pod. While Memory looks straightforward, CPU is a bit tricky to understand. It's like breaking something whole into pieces.

Is there any best practices to estimate/calculate those kubernetes resources for a Pod?

CodePudding user response:

Different ways:

  1. See current usage with: kubectl top pod

  2. Deploy the Kubernetes dashboard to see short-term data

  3. Deploy Prometheus to see also trend usage

CodePudding user response:

You can use prometheus and grafana to monitor and then estimate resources for Pod.

  • Related