Kubectl apply: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 3: Line 3:
* [[Kubectl#Commands|kubectl]]
* [[Kubectl#Commands|kubectl]]
* [[Kubernetes_Manifests#Overview|Kubernetes Manifests]]
* [[Kubernetes_Manifests#Overview|Kubernetes Manifests]]
* [[Kubernetes_Concepts#Declarative_versus_Imperative_Approach|Declarative versus Imperative Approach]]


=Overview=
=Overview=

Revision as of 20:46, 29 January 2020

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.