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:
See current usage with:
kubectl top pod
Deploy the Kubernetes dashboard to see short-term data
Deploy Prometheus to see also trend usage
CodePudding user response:
You can use prometheus and grafana to monitor and then estimate resources for Pod.