Kubectl apply: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:


=Overview=
=Overview=
Apply a configuration to a resource by filename or stdin:


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


<tt>kubectl apply</tt> supports [[Kubernetes Strategic Merge Patch|strategic merge patch]].
<tt>kubectl apply</tt> supports [[Kubernetes Strategic Merge Patch|strategic merge patch]].

Revision as of 08:40, 12 December 2019

Internal

Overview

Apply a configuration to a resource by filename or stdin:

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

kubectl apply supports strategic merge patch.