CmdID

CmdID / kubectl

kubectl diff

Diff the live version against a would-be applied version kubectl reference

13 options Its page in the kubectl reference

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

Options

13 in the kubectl reference
--concurrencyNumber of objects to process in parallel when diffing against the live version.
--field-managerName of the manager used to track field ownership.
--filename, -fFilename, directory, or URL to files contains the configuration to diff
--force-conflictsIf true, server-side apply will force the changes against conflicts.
--help, -hhelp for diff
--kustomize, -kProcess the kustomization directory.
--prune-allowlistOverwrite the default allowlist with for --prune
--pruneInclude resources that would be deleted by pruning.
--recursive, -RProcess the directory used in -f, --filename recursively.
--selector, -lSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)).
--server-sideIf true, apply runs in the server instead of the client.
--show-managed-fieldsIf true, include managed fields in the diff.
--show-secretsIf true, do not mask secret values in the diff.