Difference between revisions of "Kubectl apply"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 2: Line 2:
  
  
* <code>[[kubectl apply]] -f https://k8s.io/examples/pods/storage/redis.yaml</code>
+
* <code>kubectl apply -f https://k8s.io/examples/pods/storage/redis.yaml</code>
* <code>[[kubectl apply]] -f ./[[secret.yaml]]</code>
+
* <code>kubectl apply -f ./[[secret.yaml]]</code>
  
* <code>[[kubectl apply]] -k</code>
+
* <code>kubectl apply -k</code>
  
* kubectl apply --dry-run=server
+
* <code> kubectl apply --dry-run=server</code>
 +
 
 +
* [[Istio install]]: <code>[[kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml]]</code>
  
 
  kubectl apply -f https://k8s.io/examples/application/mysql/mysql-pv.yaml
 
  kubectl apply -f https://k8s.io/examples/application/mysql/mysql-pv.yaml

Revision as of 11:24, 15 May 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

See also

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