CmdID

CmdID / kubectl

kubectl patch

Update fields of a resource kubectl reference

15 options Its page in the kubectl reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

15 in the kubectl reference
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.
--dry-runMust be "none", "server", or "client".
--field-managerName of the manager used to track field ownership.
--filename, -fFilename, directory, or URL to files identifying the resource to update
--help, -hhelp for patch
--kustomize, -kProcess the kustomization directory.
--localIf true, patch will operate on the content of the file, not the server-side resource.
--output, -oOutput format.
--patch, -pThe patch to be applied to the resource JSON file.
--patch-fileA file containing a patch to be applied to the resource.
--recursive, -RProcess the directory used in -f, --filename recursively.
--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.
--subresourceIf specified, patch will operate on the subresource of the requested object.
--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.
--typeThe type of patch being provided; one of [json merge strategic]