kubernetes deployment yaml resources code example
Example 1: kubernetes resources limits
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
Example 2: set right limit in kubernetes pods tool
kubectl describe pod memory-demo-2 --namespace=mem-example