CmdID

CmdID / kubectl

kubectl apply

Apply a configuration to a resource by file name or stdin kubectl reference

3 commands 25 options Its page in the kubectl reference

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

Commands

3, each with its page

Options

25 in the kubectl reference
Show its 25 options
--allSelect all resources in the namespace of the specified resource types.
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.
--cascadeMust be "background", "orphan", or "foreground".
--dry-runMust be "none", "server", or "client".
--field-managerName of the manager used to track field ownership.
--filename, -fThe files, directories or URLs that contain the configurations to apply.
--force-conflictsIf true, server-side apply will force the changes against conflicts.
--forceIf true, immediately remove resources from API and bypass graceful deletion.
--grace-periodPeriod of time in seconds given to the resource to terminate gracefully.
--help, -hhelp for apply
--kustomize, -kProcess a kustomization directory.
--openapi-patchIf true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec.
--output, -oOutput format.
--overwriteAutomatically resolve conflicts between the modified and live configuration by using values from the modified configuration
--prune-allowlistOverwrite the default allowlist with for --prune
--pruneAutomatically delete resource objects, that do not appear in the configs and are created by either apply or create --save-config.
--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, keep the managedFields when printing objects in JSON or YAML format.
--subresourceIf specified, apply 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.
--timeoutThe length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object
--validateMust be one of: strict (or true), warn, ignore (or false).
--waitIf true, wait for resources to be gone before returning.