|
| 1 | +<!-- BEGIN MUNGE: UNVERSIONED_WARNING --> |
| 2 | + |
| 3 | +<!-- BEGIN STRIP_FOR_RELEASE --> |
| 4 | + |
| 5 | +<img src="http://kubernetes.io/img/warning.png" alt="WARNING" |
| 6 | + width="25" height="25"> |
| 7 | +<img src="http://kubernetes.io/img/warning.png" alt="WARNING" |
| 8 | + width="25" height="25"> |
| 9 | +<img src="http://kubernetes.io/img/warning.png" alt="WARNING" |
| 10 | + width="25" height="25"> |
| 11 | +<img src="http://kubernetes.io/img/warning.png" alt="WARNING" |
| 12 | + width="25" height="25"> |
| 13 | +<img src="http://kubernetes.io/img/warning.png" alt="WARNING" |
| 14 | + width="25" height="25"> |
| 15 | + |
| 16 | +<h2>PLEASE NOTE: This document applies to the HEAD of the source tree</h2> |
| 17 | + |
| 18 | +If you are using a released version of Kubernetes, you should |
| 19 | +refer to the docs that go with that version. |
| 20 | + |
| 21 | +<strong> |
| 22 | +The latest 1.0.x release of this document can be found |
| 23 | +[here](http://releases.k8s.io/release-1.0/docs/user-guide/kubectl/kubectl_explain.md). |
| 24 | + |
| 25 | +Documentation for other releases can be found at |
| 26 | +[releases.k8s.io](http://releases.k8s.io). |
| 27 | +</strong> |
| 28 | +-- |
| 29 | + |
| 30 | +<!-- END STRIP_FOR_RELEASE --> |
| 31 | + |
| 32 | +<!-- END MUNGE: UNVERSIONED_WARNING --> |
| 33 | + |
| 34 | +## kubectl explain |
| 35 | + |
| 36 | +Documentation of resources. |
| 37 | + |
| 38 | +### Synopsis |
| 39 | + |
| 40 | + |
| 41 | +Documentation of resources. |
| 42 | + |
| 43 | +Possible resource types include: pods (po), services (svc), |
| 44 | +replicationcontrollers (rc), nodes (no), events (ev), componentstatuses (cs), |
| 45 | +limitranges (limits), persistentvolumes (pv), persistentvolumeclaims (pvc), |
| 46 | +resourcequotas (quota), namespaces (ns) or endpoints (ep). |
| 47 | + |
| 48 | +``` |
| 49 | +kubectl explain RESOURCE |
| 50 | +``` |
| 51 | + |
| 52 | +### Examples |
| 53 | + |
| 54 | +``` |
| 55 | +# Get the documentation of the resource and its fields |
| 56 | +$ kubectl explain pods |
| 57 | +
|
| 58 | +# Get the documentation of a specific field of a resource |
| 59 | +$ kubectl explain pods.spec.containers |
| 60 | +``` |
| 61 | + |
| 62 | +### Options |
| 63 | + |
| 64 | +``` |
| 65 | + --recursive[=false]: Print the fields of fields (Currently only 1 level deep) |
| 66 | +``` |
| 67 | + |
| 68 | +### Options inherited from parent commands |
| 69 | + |
| 70 | +``` |
| 71 | + --alsologtostderr[=false]: log to standard error as well as files |
| 72 | + --api-version="": The API version to use when talking to the server |
| 73 | + --certificate-authority="": Path to a cert. file for the certificate authority. |
| 74 | + --client-certificate="": Path to a client key file for TLS. |
| 75 | + --client-key="": Path to a client key file for TLS. |
| 76 | + --cluster="": The name of the kubeconfig cluster to use |
| 77 | + --context="": The name of the kubeconfig context to use |
| 78 | + --insecure-skip-tls-verify[=false]: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. |
| 79 | + --kubeconfig="": Path to the kubeconfig file to use for CLI requests. |
| 80 | + --log-backtrace-at=:0: when logging hits line file:N, emit a stack trace |
| 81 | + --log-dir="": If non-empty, write log files in this directory |
| 82 | + --log-flush-frequency=5s: Maximum number of seconds between log flushes |
| 83 | + --logtostderr[=true]: log to standard error instead of files |
| 84 | + --match-server-version[=false]: Require server version to match client version |
| 85 | + --namespace="": If present, the namespace scope for this CLI request. |
| 86 | + --password="": Password for basic authentication to the API server. |
| 87 | + -s, --server="": The address and port of the Kubernetes API server |
| 88 | + --stderrthreshold=2: logs at or above this threshold go to stderr |
| 89 | + --token="": Bearer token for authentication to the API server. |
| 90 | + --user="": The name of the kubeconfig user to use |
| 91 | + --username="": Username for basic authentication to the API server. |
| 92 | + --v=0: log level for V logs |
| 93 | + --vmodule=: comma-separated list of pattern=N settings for file-filtered logging |
| 94 | +``` |
| 95 | + |
| 96 | +### SEE ALSO |
| 97 | + |
| 98 | +* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager |
| 99 | + |
| 100 | +###### Auto generated by spf13/cobra at 2015-09-25 11:07:41.758531939 +0000 UTC |
| 101 | + |
| 102 | +<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> |
| 103 | +[]() |
| 104 | +<!-- END MUNGE: GENERATED_ANALYTICS --> |
0 commit comments