Skip to main content
Apply a configuration to a resource by file name or stdin

Synopsis

Apply a configuration to a resource by file name or stdin. The resource name must be specified. This resource will be created if it doesn’t exist yet. To use ‘apply’, always create the resource initially with either ‘apply’ or ‘create —save-config’. JSON and YAML formats are accepted. Alpha Disclaimer: the —prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See https://issues.k8s.io/34274.

Examples

Options

Options inherited from parent commands

See also

Auto generated by spf13/cobra on 24-Feb-2026
Last modified on March 30, 2026