Difference between revisions of "Kubectl apply"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 8: Line 8:
  
 
* kubectl apply --dry-run=server
 
* 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 ==
 
== Activities ==

Revision as of 13:27, 6 May 2020

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


  • 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

See also

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