Editing Kubectl rollout restart

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-restart-em-
 
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-restart-em-
 
[[kubectl rollout]]
 
 
  [[kubectl rollout]] restart
 
  [[kubectl rollout]] restart
 
  [[kubectl rollout restart --help]]
 
  [[kubectl rollout restart --help]]
Line 8: Line 6:
 
  [[kubectl rollout restart deployment]] your-app
 
  [[kubectl rollout restart deployment]] your-app
  
[[kubectl rollout restart deployment ebs-csi-controller -n kube-system]]
+
<pre>
 +
Restart a resource.
 +
 
 +
    Resource rollout will be restarted.
 +
 
 +
Examples:
 +
  # Restart a deployment
 +
  kubectl rollout restart deployment/nginx
 +
 
 +
  # Restart a daemon set
 +
  kubectl rollout restart daemonset/abc
 +
 
 +
  # Restart deployments with the app=nginx label
 +
  kubectl rollout restart deployment --selector=app=nginx
 +
 
 +
Options:
 +
    --allow-missing-template-keys=true:
 +
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to
 +
golang and jsonpath output formats.
 +
 
 +
    --field-manager='kubectl-rollout':
 +
Name of the manager used to track field ownership.
 +
 
 +
    -f, --filename=[]:
 +
Filename, directory, or URL to files identifying the resource to get from a server.
 +
 
 +
    -k, --kustomize='':
 +
Process the kustomization directory. This flag can't be used together with -f or -R.
 +
 
 +
    -o, --output='':
 +
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath,
 +
jsonpath-as-json, jsonpath-file).
 +
 
 +
    -R, --recursive=false:
 +
Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests
 +
organized within the same directory.
 +
 
 +
    -l, --selector='':
 +
Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching
 +
objects must satisfy all of the specified label constraints.
 +
 
 +
    --show-managed-fields=false:
 +
If true, keep the managedFields when printing objects in JSON or YAML format.
 +
 
 +
    --template='':
 +
Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format
 +
is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
 +
 
 +
Usage:
 +
  kubectl rollout restart RESOURCE [options]
  
 +
Use "kubectl options" for a list of global command-line options (applies to all commands).
 +
</pre>
  
 
== Related ==
 
== Related ==
 
* <code>[[kubectl get deployments]]</code>
 
* <code>[[kubectl get deployments]]</code>
* [[Kubernetes deployments]]
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: