Skip to content

kubectl replace

  • Replace completely an object
  • The selection of the object to be replaced is by its "name"
kubectl replace -f "manifest.yaml"
kubectl replace -f "manifest.yaml" --force # completely recreate the object