Difference between revisions of "Kubectl apply"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 17: Line 17:
 
== Activities ==
 
== Activities ==
 
* [[CKA v1.15]]: [[Create and configure a basic Pod]] (<code>[[kubectl apply]]</code>)
 
* [[CKA v1.15]]: [[Create and configure a basic Pod]] (<code>[[kubectl apply]]</code>)
 +
 +
== Related commans ==
 +
* <code>[[kubectl create]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 12:25, 23 August 2020

Apply a configuration to a resource by filename or stdin[1]


  • kubectl apply -k
  • kubectl apply --dry-run=server
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-pv.yaml
persistentvolume/mysql-pv-volume created
persistentvolumeclaim/mysql-pv-claim created

Activities

Related commans

See also

  • https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply
  • Advertising: