Modify the container and image names on the existing deployment

Hi, I am new to CKAD,
Can someone explain how to modify the container name of the existing deployment without deleting the existing deployment.

You can edit this kind of information in an existing deployment. For example, you can use kubectl edit deploy NAME-OF-DEPLOYMENT and use the editor to modify the containers or add additional containers to the template for the deployment. Or you can use kubectl apply if you have the original YAML. Both these techniques work.

Thanks rob for your explanation