Is there a way to "ignore" this error ? ``` ....is invalid: spec: Forbidden: s . . .

Nathanael Fuog:
is there a way to “ignore” this error ?

....is invalid: spec: Forbidden: spec is immutable after creation....

I would in most cases just k get pod foo -o yaml ... , k delete pod foo , change the immutable fields and k apply -f .... Is there a shortcut for replacing a deployment or pod? (i know that there is a reason for immutable fields but a lot of training questions end up doing exactly that process)

Fernando Jordan Silva:
Kubectl replace -f <file> —force

Nathanael Fuog:
but is there a way to make k edit like a replace? to be even faster?