<p>After creating the pod-definition.yml file.</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
    name: myapp-pod
    labels: 
      app: myapp
      type: server
spec:
    containers:
        - name: nginx-container
          image: nginx
</code></pre>
<p>The linter is giving this warning.</p>
<p><code>One or more containers do not have resource limits - this could starve other processes</code></p>

Rushikesh Sabde
<p>It is a good practice to declare resource requests and limits for both <a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/" rel="noreferrer">memory</a> and <a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/" rel="noreferrer">cpu</a> for each container. This helps to schedule the container to a node that has available resources for your Pod, and also so that your Pod does not use resources that other Pods needs - therefore the <em>&quot;this could starve other processes&quot;</em> message.</p>
<p>E.g. to add resource requests and limits to your example</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: myapp-pod
  labels: 
    app: myapp
    type: server
spec:
  containers:
  - name: nginx-container
    image: nginx
    resources:
      limits:
        memory: 512Mi
        cpu: &quot;1&quot;
      requests:
        memory: 256Mi
        cpu: &quot;0.2&quot;
</code></pre>
