PageRenderTime 100ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/user-guide/kubectl/kubectl_stop.md

https://gitlab.com/CORP-RESELLER/kubernetes
Markdown | 118 lines | 89 code | 29 blank | 0 comment | 0 complexity | 13f624011b6f2aad0ea86d5997f121c8 MD5 | raw file
  1. <!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
  2. <!-- BEGIN STRIP_FOR_RELEASE -->
  3. <img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
  4. width="25" height="25">
  5. <img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
  6. width="25" height="25">
  7. <img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
  8. width="25" height="25">
  9. <img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
  10. width="25" height="25">
  11. <img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
  12. width="25" height="25">
  13. <h2>PLEASE NOTE: This document applies to the HEAD of the source tree</h2>
  14. If you are using a released version of Kubernetes, you should
  15. refer to the docs that go with that version.
  16. <!-- TAG RELEASE_LINK, added by the munger automatically -->
  17. <strong>
  18. The latest release of this document can be found
  19. [here](http://releases.k8s.io/release-1.3/docs/user-guide/kubectl/kubectl_stop.md).
  20. Documentation for other releases can be found at
  21. [releases.k8s.io](http://releases.k8s.io).
  22. </strong>
  23. --
  24. <!-- END STRIP_FOR_RELEASE -->
  25. <!-- END MUNGE: UNVERSIONED_WARNING -->
  26. ## kubectl stop
  27. Deprecated: Gracefully shut down a resource by name or filename.
  28. ### Synopsis
  29. Deprecated: Gracefully shut down a resource by name or filename.
  30. The stop command is deprecated, all its functionalities are covered by delete command.
  31. See 'kubectl delete --help' for more details.
  32. Attempts to shut down and delete a resource that supports graceful termination.
  33. If the resource is scalable it will be scaled to 0 before deletion.
  34. ```
  35. kubectl stop (-f FILENAME | TYPE (NAME | -l label | --all))
  36. ```
  37. ### Examples
  38. ```
  39. # Shut down foo.
  40. $ kubectl stop replicationcontroller foo
  41. # Stop pods and services with label name=myLabel.
  42. $ kubectl stop pods,services -l name=myLabel
  43. # Shut down the service defined in service.json
  44. $ kubectl stop -f service.json
  45. # Shut down all resources in the path/to/resources directory
  46. $ kubectl stop -f path/to/resources
  47. ```
  48. ### Options
  49. ```
  50. --all[=false]: [-all] to select all the specified resources.
  51. -f, --filename=[]: Filename, directory, or URL to file of resource(s) to be stopped.
  52. --grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative.
  53. --ignore-not-found[=false]: Treat "resource not found" as a successful stop.
  54. -o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
  55. -l, --selector="": Selector (label query) to filter on.
  56. --timeout=0: The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object
  57. ```
  58. ### Options inherited from parent commands
  59. ```
  60. --alsologtostderr[=false]: log to standard error as well as files
  61. --api-version="": The API version to use when talking to the server
  62. --certificate-authority="": Path to a cert. file for the certificate authority.
  63. --client-certificate="": Path to a client certificate file for TLS.
  64. --client-key="": Path to a client key file for TLS.
  65. --cluster="": The name of the kubeconfig cluster to use
  66. --context="": The name of the kubeconfig context to use
  67. --insecure-skip-tls-verify[=false]: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
  68. --kubeconfig="": Path to the kubeconfig file to use for CLI requests.
  69. --log-backtrace-at=:0: when logging hits line file:N, emit a stack trace
  70. --log-dir="": If non-empty, write log files in this directory
  71. --log-flush-frequency=5s: Maximum number of seconds between log flushes
  72. --logtostderr[=true]: log to standard error instead of files
  73. --match-server-version[=false]: Require server version to match client version
  74. --namespace="": If present, the namespace scope for this CLI request.
  75. --password="": Password for basic authentication to the API server.
  76. -s, --server="": The address and port of the Kubernetes API server
  77. --stderrthreshold=2: logs at or above this threshold go to stderr
  78. --token="": Bearer token for authentication to the API server.
  79. --user="": The name of the kubeconfig user to use
  80. --username="": Username for basic authentication to the API server.
  81. --v=0: log level for V logs
  82. --vmodule=: comma-separated list of pattern=N settings for file-filtered logging
  83. ```
  84. ### SEE ALSO
  85. * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
  86. ###### Auto generated by spf13/cobra on 24-Nov-2015
  87. <!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
  88. [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_stop.md?pixel)]()
  89. <!-- END MUNGE: GENERATED_ANALYTICS -->