CmdID / kubectl / kubectl apply
kubectl apply set-last-applied
Set the last-applied-configuration annotation on a live object to match the contents of a file kubectl reference
8 options Its page in the kubectl reference
Options
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.--create-annotationWill create 'last-applied-configuration' annotations if current objects doesn't have one--dry-runMust be "none", "server", or "client".--filename, -fFilename, directory, or URL to files that contains the last-applied-configuration annotations--help, -hhelp for set-last-applied--output, -oOutput format.--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.