2015-07-12 04:04:52 +00:00
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
2015-07-16 17:02:26 +00:00
< img src = "http://kubernetes.io/img/warning.png" alt = "WARNING"
width="25" height="25">
< img src = "http://kubernetes.io/img/warning.png" alt = "WARNING"
width="25" height="25">
< img src = "http://kubernetes.io/img/warning.png" alt = "WARNING"
width="25" height="25">
< img src = "http://kubernetes.io/img/warning.png" alt = "WARNING"
width="25" height="25">
< img src = "http://kubernetes.io/img/warning.png" alt = "WARNING"
width="25" height="25">
< h2 > PLEASE NOTE: This document applies to the HEAD of the source tree< / h2 >
If you are using a released version of Kubernetes, you should
refer to the docs that go with that version.
2015-12-14 18:37:38 +00:00
<!-- TAG RELEASE_LINK, added by the munger automatically -->
2015-07-16 17:02:26 +00:00
< strong >
2015-11-03 18:17:57 +00:00
The latest release of this document can be found
[here ](http://releases.k8s.io/release-1.1/docs/user-guide/kubectl/kubectl.md ).
2015-07-16 17:02:26 +00:00
Documentation for other releases can be found at
[releases.k8s.io ](http://releases.k8s.io ).
< / strong >
--
2015-07-13 22:15:35 +00:00
2015-07-12 04:04:52 +00:00
<!-- END STRIP_FOR_RELEASE -->
<!-- END MUNGE: UNVERSIONED_WARNING -->
2015-07-17 22:35:41 +00:00
2015-01-14 05:02:22 +00:00
## kubectl
kubectl controls the Kubernetes cluster manager
2015-01-31 19:08:59 +00:00
### Synopsis
2015-01-14 05:02:22 +00:00
2015-03-11 17:22:08 +00:00
2015-01-31 19:08:59 +00:00
kubectl controls the Kubernetes cluster manager.
2015-01-14 05:02:22 +00:00
2015-08-12 20:18:47 +00:00
Find more information at https://github.com/kubernetes/kubernetes.
2015-02-11 23:25:45 +00:00
2015-03-11 17:22:08 +00:00
```
2015-01-31 19:08:59 +00:00
kubectl
2015-03-11 17:22:08 +00:00
```
2015-02-11 23:25:45 +00:00
2015-01-31 19:08:59 +00:00
### Options
2015-02-07 00:33:42 +00:00
```
2015-08-17 18:06:16 +00:00
--alsologtostderr[=false]: log to standard error as well as files
2015-02-07 00:33:42 +00:00
--api-version="": The API version to use when talking to the server
--certificate-authority="": Path to a cert. file for the certificate authority.
2015-11-24 01:33:35 +00:00
--client-certificate="": Path to a client certificate file for TLS.
2015-02-07 00:33:42 +00:00
--client-key="": Path to a client key file for TLS.
--cluster="": The name of the kubeconfig cluster to use
--context="": The name of the kubeconfig context to use
2015-08-05 14:23:28 +00:00
--insecure-skip-tls-verify[=false]: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
2015-02-07 00:33:42 +00:00
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
2015-05-16 16:44:42 +00:00
--log-backtrace-at=:0: when logging hits line file:N, emit a stack trace
2015-08-17 18:06:16 +00:00
--log-dir="": If non-empty, write log files in this directory
2015-05-16 16:44:42 +00:00
--log-flush-frequency=5s: Maximum number of seconds between log flushes
2015-08-17 18:06:16 +00:00
--logtostderr[=true]: log to standard error instead of files
2015-08-05 14:23:28 +00:00
--match-server-version[=false]: Require server version to match client version
2015-02-07 00:33:42 +00:00
--namespace="": If present, the namespace scope for this CLI request.
2015-02-19 21:22:29 +00:00
--password="": Password for basic authentication to the API server.
2015-02-12 00:23:44 +00:00
-s, --server="": The address and port of the Kubernetes API server
2015-02-07 00:33:42 +00:00
--stderrthreshold=2: logs at or above this threshold go to stderr
--token="": Bearer token for authentication to the API server.
--user="": The name of the kubeconfig user to use
2015-02-19 21:22:29 +00:00
--username="": Username for basic authentication to the API server.
2015-02-07 00:33:42 +00:00
--v=0: log level for V logs
--vmodule=: comma-separated list of pattern=N settings for file-filtered logging
```
2015-01-31 19:08:59 +00:00
### SEE ALSO
2015-07-17 22:35:41 +00:00
2015-07-23 22:43:48 +00:00
* [kubectl annotate ](kubectl_annotate.md ) - Update the annotations on a resource
2015-10-16 21:36:49 +00:00
* [kubectl api-versions ](kubectl_api-versions.md ) - Print the supported API versions on the server, in the form of "group/version".
2015-09-10 21:32:57 +00:00
* [kubectl apply ](kubectl_apply.md ) - Apply a configuration to a resource by filename or stdin
2015-07-29 23:19:09 +00:00
* [kubectl attach ](kubectl_attach.md ) - Attach to a running container.
2015-11-14 01:20:04 +00:00
* [kubectl autoscale ](kubectl_autoscale.md ) - Auto-scale a deployment or replication controller
2015-04-12 19:04:39 +00:00
* [kubectl cluster-info ](kubectl_cluster-info.md ) - Display cluster info
* [kubectl config ](kubectl_config.md ) - config modifies kubeconfig files
2015-07-16 09:20:53 +00:00
* [kubectl convert ](kubectl_convert.md ) - Convert config files between different API versions
2015-10-31 00:16:57 +00:00
* [kubectl cordon ](kubectl_cordon.md ) - Mark node as unschedulable
2015-04-12 19:04:39 +00:00
* [kubectl create ](kubectl_create.md ) - Create a resource by filename or stdin
2015-07-16 06:19:47 +00:00
* [kubectl delete ](kubectl_delete.md ) - Delete resources by filenames, stdin, resources and names, or by resources and label selector.
2015-07-07 23:57:37 +00:00
* [kubectl describe ](kubectl_describe.md ) - Show details of a specific resource or group of resources
2015-10-31 00:16:57 +00:00
* [kubectl drain ](kubectl_drain.md ) - Drain node in preparation for maintenance
2015-09-04 23:33:11 +00:00
* [kubectl edit ](kubectl_edit.md ) - Edit a resource on the server
2015-04-12 19:04:39 +00:00
* [kubectl exec ](kubectl_exec.md ) - Execute a command in a container.
2015-08-13 01:33:25 +00:00
* [kubectl explain ](kubectl_explain.md ) - Documentation of resources.
2015-08-26 08:06:40 +00:00
* [kubectl expose ](kubectl_expose.md ) - Take a replication controller, service or pod and expose it as a new Kubernetes Service
2015-04-12 19:04:39 +00:00
* [kubectl get ](kubectl_get.md ) - Display one or many resources
* [kubectl label ](kubectl_label.md ) - Update the labels on a resource
2015-05-21 20:14:32 +00:00
* [kubectl logs ](kubectl_logs.md ) - Print the logs for a container in a pod.
2015-08-08 21:29:57 +00:00
* [kubectl namespace ](kubectl_namespace.md ) - SUPERSEDED: Set and view the current Kubernetes namespace
2015-11-10 19:55:20 +00:00
* [kubectl patch ](kubectl_patch.md ) - Update field(s) of a resource using strategic merge patch.
2015-04-12 19:04:39 +00:00
* [kubectl port-forward ](kubectl_port-forward.md ) - Forward one or more local ports to a pod.
* [kubectl proxy ](kubectl_proxy.md ) - Run a proxy to the Kubernetes API server
2015-06-27 04:25:08 +00:00
* [kubectl replace ](kubectl_replace.md ) - Replace a resource by filename or stdin.
2015-04-12 19:04:39 +00:00
* [kubectl rolling-update ](kubectl_rolling-update.md ) - Perform a rolling update of the given ReplicationController.
2016-01-20 21:35:01 +00:00
* [kubectl rollout ](kubectl_rollout.md ) - rollout manages a deployment
2015-05-21 20:53:10 +00:00
* [kubectl run ](kubectl_run.md ) - Run a particular image on the cluster.
2015-11-13 12:44:03 +00:00
* [kubectl scale ](kubectl_scale.md ) - Set a new size for a Replication Controller, Job, or Deployment.
2015-10-31 00:16:57 +00:00
* [kubectl uncordon ](kubectl_uncordon.md ) - Mark node as schedulable
2015-04-12 19:04:39 +00:00
* [kubectl version ](kubectl_version.md ) - Print the client and server version information.
2015-02-19 21:22:29 +00:00
2016-01-20 21:35:01 +00:00
###### Auto generated by spf13/cobra on 20-Jan-2016
2015-07-14 00:13:09 +00:00
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
2015-07-13 17:19:25 +00:00
[![Analytics ](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl.md?pixel )]()
2015-07-14 00:13:09 +00:00
<!-- END MUNGE: GENERATED_ANALYTICS -->