Can resource limits in a pod be modified after creation?

Yes, resource limits in a pod can be modified after creation using the kubectl edit command or by applying a new configuration with kubectl apply. However, keep in mind that some changes may require the pod to be restarted for the new limits to take effect. Here’s an example of how to edit a pod:

kubectl edit pod <pod-name>

This command opens the pod's configuration in your default text editor, allowing you to modify the resource limits. After saving the changes, the pod will be updated accordingly.

0 Comments

no data
Be the first to share your comment!