Updated: 8/27/2015
Table of Contents
run
or expose
, should obey the following conventions:
--generator=
--dry-run
should output the resource that would be created, without creating itkubectl config
) may be used to group related non-standard commands, such as custom generators, mutations, and computations"Flags()"
before adding a new flag-f
: Resource file
--follow
in logs
, but should be deprecated in favor of -F
-l
: Label selector
--labels
in expose
, but should be deprecated-L
: Label columns-c
: Container
--client
in version
, but should be deprecated-i
: Attach stdin-t
: Allocate TTY
--template
, but deprecated-w
: Watch (currently also used for --www
in proxy
, but should be deprecated)-p
: Previous
--pod
in exec
, but deprecated--patch
in patch
, but should be deprecated--port
in proxy
, but should be deprecated-P
: Static file prefix in proxy
, but should be deprecated-r
: Replicas-u
: Unix socket-v
: Verbose logging level--dry-run
: Don’t modify the live state; simulate the mutation and display the output--local
: Don’t contact the server; just do local read, transformation, generation, etc. and display the output--output-version=...
: Convert the output to a different API group/version--validate
: Validate the resource schemaget
outputget
commands should output one row per resource, and one resource per row
get
output should fit within about 80 columns
-o wide
may be used to display additional columnsNAME
(may change this to an abbreviation of resource type)AGE
-Lkey
should append a column containing the value of label with key key
, with <none>
if not presentdescribe
commands may output on multiple lines and may include information from related resources, such as events. Describe should add additional information from related resources that a normal user may need to know - if a user would always run “describe resource1” and the immediately want to run a “get type2” or “describe resource2”, consider including that info. Examples, persistent volume claims for pods that reference claims, events for most resources, nodes and the pods scheduled on them. When fetching related resources, a targeted field selector should be used in favor of client side filtering of related resources.-o name
may be used to just display TYPE/name, which may be used to specify resources in other commandshack/update-generated-docs.sh
.
$
#