Hi, can someone help to understand why i'm getting this error Chapter - `APPLICA . . .

Vivek Kumar:
Hi, can someone help to understand why i’m getting this error
Chapter - APPLICATION LIFECYCLE MANAGEMENT, PRACTICE TEST – MULTI CONTAINER PODS

controlplane $ kubectl apply -f /var/answers/answer-app.yaml
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
The Pod "app" is invalid: spec.containers: Forbidden: pod updates may not add or remove containers

Tej_Singh_Rana:
It looks like you are trying to apply changes on the existing pod and due to the immutability field it couldn’t be possible.
We have to delete the first and then run the kubectl apply command.