<p>Here is a yaml file that has been created to be deployed in kubernetes. I would like to know since there is no resource request and limits in the file, how kubernetes knows the resource requests and limits to run it? How can I fetch that information?</p>

<pre><code>apiVersion: v1
 kind: Pod
 metadata:
   name: rss-site
   labels:
     app: web
 spec:
   containers:
     - name: front-end
       image: nginx
       ports:
         - containerPort: 80
     - name: rss-reader
       image: nickchase/rss-php-nginx:v1
       ports:
         - containerPort: 88
</code></pre>

HamiBU
<p>you can use the below steps to fetch the resource limits assigned to the pod.</p>

<pre><code>Create the pod
-------------------
kubectl run test-resource-limits --image=busybox --limits "memory=100Mi" \
  --command -- /bin/sh -c "while true; do sleep 2; done"

Test the resource limits that are specified
-------------------------------------------
kubectl get pods test-resource-limits-7b8b46c8c7-jdjgs  \
  -o=jsonpath='{.spec.containers[0].resources}'
</code></pre>
