I am deploying plain pod yaml file. Attached is the snapshot of Pod.
My requirement is I want to update entire pod whenever its required. This can be achieved by using kubectl replace command with force, it will take care of deleting and re-creating it.
Command is kubectl replace -f pod.yaml --force
.
The RestAPI for replace is PUT (https://kubernetes-url/api/v1/namespaces/default/pods/test-pod) What query parameter I need to pass to achieve force replace through rest api similar to kubectl force replace.
kubectl apply -f
a PNG file.) – David Maze