Can we use kubectl replace --force even when we are creating pod/deployment for . . .

Jaswanth Yelamarthi:
can we use kubectl replace --force even when we are creating pod/deployment for first time.

Tej_Singh_Rana:
Hello, @Jaswanth Yelamarthi
To create a pod/deployment for the first time, we use kubectl create -f command.
kubectl replace command, will delete the existing resource and recreate it from the given definition file.

Jaswanth Yelamarthi:
I tested in the cluster even if use use replace it’s creating