<p>I defined my deployment resources</p>

<pre><code>    resources:
      limits:
        cpu: 900m
        memory: 2500Mi
</code></pre>

<p>now on <a href="http://localhost:8001/api" rel="nofollow noreferrer">http://localhost:8001/api</a> <a href="https://i.stack.imgur.com/riZLA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/riZLA.png" alt="enter image description here"></a></p>

<p>how can I get the <strong>max</strong> usage of memory and cpu (in order to handle and define usages and resources well)?  </p>

<p>Usually, you will need to implement some monitoring solution for your K8s cluster to store historical metrics. </p>

<p>If your Kubernetes deployment runs on GKE, you can use <a href="https://cloudplatform.googleblog.com/2015/12/monitoring-Container-Engine-with-Google-Cloud-Monitoring.html" rel="nofollow noreferrer">Stackdriver</a>
for that and if you have opted for <a href="https://cloud.google.com/stackdriver/pricing" rel="nofollow noreferrer">Stackdriver Premium</a>, you will see your historical metrics there. If it's your own Kubernetes deployment, <a href="https://prometheus.io/" rel="nofollow noreferrer">Prometheus/Grafana</a> is a popular choice</p>
