Can anyone help me to understand the different between this 2 > *Set a deplo . . .

Mohammad Karim:
Can anyone help me to understand the different between this 2

> Set a deployments nginx container cpu limits to “200m” and memory to “512Mi”

kubectl set resources deployment nginx -c=nginx --limits=cpu=200m,memory=512Mi
Set

> Set the resource request and limits for all containers in nginx

kubectl set resources deployment nginx --limits=cpu=200m,memory=512Mi --requests=cpu=100m,memory=256Mi

Mohamed Ayman:
if u have more than one container in your deployment and want to limit a specific container, then you should define this container name using option -c “the first one”. If you have multip containers inside your deployment and want to limit the all containers, then you should use the option 2