Kubectl apply

From NovaOrdis Knowledge Base
Revision as of 05:37, 3 September 2020 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

Apply a configuration to a resource by filename or stdin:

kubectl apply -f <manifest.yaml>
cat <manifest.yaml> | kubectl apply -f -

The command can be used to both create a new resource or update the state of an existing resource. When updating the state, the command supports strategic merge patch.

Also see:

kubectl create

Options

-f|--filename

The filename that contains the configuration to apply.

-k|--kustomize

Process a kustomization directory.

-k