Commit Graph

442 Commits

Author SHA1 Message Date
k8s-merge-robot
53ea2cb444 Merge pull request #25074 from AdoHe/remove_container_args
Automatic merge from submit-queue

update kubectl apply help info

Please refer #22342 for more detail. @bgrant0607 ptal. Also I have open a PR to update docs on `kuberntes.github.io`
2016-05-04 14:44:14 -07:00
k8s-merge-robot
1642083e60 Merge pull request #24645 from jlowdermilk/rolling-update
Automatic merge from submit-queue

kubectl rolling-update support for same image

Fixes #23497.

Enables `kubectl rolling-update --image` to the same image, adding a `--image-pull-policy` flag to remove ambiguity. This allows rolling-update to behave as an "update and/or restart" (https://github.com/kubernetes/kubernetes/issues/23497#issuecomment-212349730), or as a forced update when the same tag can mean multiple versions (e.g. `:latest`). cc @janetkuo @nikhiljindal
2016-05-04 07:24:22 -07:00
AdoHe
036ac359d1 update kubectl apply help info 2016-05-03 22:50:24 -04:00
Andy Goldstein
8858d20044 Fix kubectl create configmap help
Remove "generic" from the help text, as that was an inadvertent carry-over from `kubectl create
secret generic`.
2016-04-29 16:31:24 -04:00
k8s-merge-robot
ae5065a2c2 Merge pull request #24365 from janetkuo/remove-t-for-tty
Automatic merge from submit-queue

Add flag -t as shorthand for --tty

`-t` was deprecated in #12813 (Aug. 2015, about 6+ months ago). 

Now remove `--template`'s shorthand `-t` and create a shorthand `-t` for `--tty` in `kubectl run`. 

@kubernetes/kubectl
2016-04-28 00:23:11 -07:00
Jeff Lowdermilk
1baa473ef2 kubectl rolling-update support for same image 2016-04-25 09:20:15 -07:00
petervo
4f9d3ace5d kubectl: Allow []byte config fields to be set by the cli
Allows []byte config fields such as 'certificate-authority-data'
to be set using `kubectl config set` commands.
2016-04-22 15:53:24 -07:00
Janet Kuo
aa2ac9b1d1 -t shorthand for --tty instead of --template 2016-04-15 17:12:42 -07:00
Marc Lough
fdf409861a Drain pods created from ReplicaSets 2016-04-15 08:51:40 +01:00
Daniel Smith
bbe5299371 Merge pull request #23798 from nak3/bash-completion
Bash completion updates
2016-04-14 16:59:48 -07:00
Daniel Smith
a42d7fa31c Merge pull request #23756 from smarterclayton/force_delete
Add a client flag to delete "--now" for grace period 0
2016-04-14 16:55:07 -07:00
deads2k
ac4c545b91 add act-as powers 2016-04-14 12:49:10 -04:00
Kenjiro Nakayama
c9d34870ed Update bashcompletion codes for kubectl expose 2016-04-14 23:43:48 +09:00
Kenjiro Nakayama
84e3ee8ec4 Update bashcompletion codes for kubectl annotate 2016-04-14 23:40:34 +09:00
Clayton Coleman
ea3467f822 Add a client flag for --now delete
Is equivalent to --grace-period=0 but is more intuitive for end users.
2016-04-07 23:45:08 -04:00
Fabiano Franz
9ddacfa25f Mark filename flags for completions 2016-04-01 16:14:36 -03:00
Brendan Burns
be6c5b332b Add third party support to kubectl 2016-03-31 10:53:32 -07:00
k8s-merge-robot
9b6e4aa9b4 Merge pull request #23116 from metral/recursive-visit
Automatic merge from submit-queue

allow kubectl cmds to process files recursively, when given a dir

This PR accomplishes two things:

1. It creates a `--recursive` flag for use with certain `kubectl` commands that _currently_ do not process files beyond their first level of children, as seen in the issue https://github.com/kubernetes/kubernetes/issues/19767
2. It enables the ability to use the `--recursive` flag in the `kubectl` commands that currently _only_ support processing a directory up to its first level of children.
2016-03-30 05:07:47 -07:00
Dawn Chen
c47f74a470 Merge pull request #23348 from pwittrock/docs
Update docs to reflect `kubectl run` creates deployments by default i…
2016-03-28 17:03:47 -07:00
Phillip Wittrock
4d2f3c1c17 Update docs to reflect kubectl run creates deployments by default instead of replicatino controllers. 2016-03-28 16:25:02 -07:00
Mike Metral
7403878ac0 allow kubectl cmd to process dirs recursively
reqs:
    - the kubectl cmd must support the -f | --filename flag
    - the kubectl cmd must support visiting a dir one level deep,
    or using more than one resource
2016-03-28 12:44:21 -07:00
Lucas Käldström
3507bf814f Add sa as a shorthand for serviceaccounts 2016-03-25 23:28:52 +02:00
Janet Kuo
e93b855242 Update kubectl help for 1.2 resources 2016-03-22 14:14:35 -07:00
k8s-merge-robot
b56252e338 Merge pull request #23161 from thockin/drain-help-typo
Auto commit by PR queue bot
2016-03-19 22:44:54 -07:00
Tim Hockin
1e5ce735fc Fix typo in help for kubectl drain 2016-03-19 20:42:51 -07:00
AdoHe
57534eaec9 update expose command description to add deployment 2016-03-19 13:51:21 -04:00
Madhusudan.C.S
67b70d7c89 Add a Deployment example for kubectl expose. 2016-03-18 17:05:49 -07:00
Brian Grant
b7984b2fa7 Merge pull request #22862 from jlowdermilk/typo
fix typo in kubectl run help string
2016-03-11 12:26:48 -08:00
nikhiljindal
593b78f925 Deprecating --api-version flag 2016-03-11 10:12:44 -08:00
Jeff Lowdermilk
627615c870 fix typo in kubectl run help string 2016-03-11 10:11:14 -08:00
Maciej Szulik
f27871e60d Added api discovery to kubectl run, based on which we decide which generators to use 2016-03-11 16:59:14 +01:00
Maciej Szulik
de83631768 Added job/v1 generator to kubectl run 2016-03-10 19:56:57 +01:00
k8s-merge-robot
739285b146 Merge pull request #21265 from stevekuznetsov/skuznets/new-sa
Auto commit by PR queue bot
2016-03-01 01:14:06 -08:00
AdoHe
9cc668f7c6 update commented examples just remove $ 2016-02-29 09:41:09 -05:00
Steve Kuznetsov
e5b696ee43 added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
Paul Morie
7a243cb615 Regen for kubectl create configmap 2016-02-18 21:25:31 -05:00
k8s-merge-robot
9dacc5b382 Merge pull request #21238 from AdoHe/kubectl_help_bug
Auto commit by PR queue bot
2016-02-15 19:16:39 -08:00
k8s-merge-robot
47acbd62ec Merge pull request #21099 from deads2k/extend-patch
Auto commit by PR queue bot
2016-02-15 14:49:02 -08:00
AdoHe
81103a07c2 fix --sort-by help bug 2016-02-14 22:31:13 -05:00
Janet Kuo
311385e76c Make deployment the default in kubectl run 2016-02-12 12:29:14 -08:00
deads2k
9f003f7db3 allow patch to handle multiple types 2016-02-12 11:12:09 -05:00
derekwaynecarr
06f26189f0 Update kubectl create subcommand to use printer flags 2016-02-11 15:37:47 -05:00
Madhusudan.C.S
293793cf0d Allow replica set to be exposed as a service and add kubectl command tests for replica sets. 2016-02-10 16:20:08 -08:00
k8s-merge-robot
6c5540baae Merge pull request #20232 from mml/daemonset-warn
Auto commit by PR queue bot
2016-02-05 23:12:51 -08:00
AdoHe
714d12cf72 kubectl add show-labels flag to make it more readable 2016-02-04 02:08:44 -05:00
k8s-merge-robot
16aa40cc33 Merge pull request #20035 from janetkuo/record-command
Auto commit by PR queue bot
2016-02-03 20:19:08 -08:00
Janet Kuo
5088d0e147 Record kubectl commands 2016-02-03 10:19:05 -08:00
Janet Kuo
442c75045a Add kubectl rollout undo 2016-02-02 14:20:01 -08:00
Matt Liggett
f2d5375bc0 Stop deleting DaemonSet pods during drain.
We do this because they will be recreated immediately by the
DaemonSet Controller.  In addition, we also require a specific flag
(--ignore-daemonsets) when there are DaemonSet pods on the node.
2016-02-02 11:13:29 -08:00
Michail Kargakis
21c2b836ed kubectl: add rollout pause/resume subcommands 2016-02-02 10:33:55 +01:00
Janet Kuo
8fb86a3d3b Add kubectl rollout history 2016-02-01 15:32:43 -08:00
k8s-merge-robot
2ab16bda17 Merge pull request #19882 from janetkuo/kubectl-rollout-command
Auto commit by PR queue bot
2016-01-30 16:52:55 -08:00
k8s-merge-robot
34f4a03f62 Merge pull request #20103 from mml/drain-followup
Auto commit by PR queue bot
2016-01-30 06:25:06 -08:00
Jeff Lowdermilk
734a8c0602 Change kubectl help/examples to use jsonpath instead of template 2016-01-28 16:10:48 -08:00
Matt Liggett
d4b02466b7 Add support for Job-managed pods to drain. 2016-01-28 13:23:12 -08:00
Janet Kuo
183b7f4d6d Add kubectl rollout 2016-01-20 16:17:42 -08:00
k8s-merge-robot
d5dde09e10 Merge pull request #19465 from thockin/docs-nit
Auto commit by PR queue bot
2016-01-16 13:32:36 -08:00
Tom Benner
52739bc82b Add kubectl config current-context 2016-01-11 21:54:24 -08:00
Tim Hockin
5002b784f9 Clarify --external-ip in kubectl expose docs
Also fix a couple minor punctuation issues.
2016-01-10 23:29:57 -08:00
Matt Liggett
c6e9ad066e Initial node drain implementation for #3885.
It cordons (marks unschedulable) the given node, and then deletes every
pod on it, optionally using a grace period.  It will not delete pods
managed by neither a ReplicationController nor a DaemonSet without the
use of --force.

Also add cordon/uncordon, which just toggle node schedulability.
2016-01-06 17:28:18 -08:00
Brendan Burns
4123a61df7 Add the client side bits of kubectl export 2015-12-22 10:41:59 -08:00
k8s-merge-robot
5a579a2555 Merge pull request #16028 from derekwaynecarr/make_cmd
Auto commit by PR queue bot
2015-12-16 08:41:59 -08:00
k8s-merge-robot
0be54ae771 Merge pull request #18507 from feihujiang/supportRemoveFlagForKubectlRun
Auto commit by PR queue bot
2015-12-16 01:19:26 -08:00
derekwaynecarr
5e0948586c Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
feihujiang
9ab06cfa62 Support remove flag for kubectl run command 2015-12-14 16:16:43 +08:00
Jeff Lowdermilk
e53acfe19c Merge pull request #17111 from munnerz/multi-rolling-update
Allow rolling-update of a single container in multi-container pods
2015-12-11 13:08:13 -08:00
James Munnelly
61306c2a0f Allow rolling-update of a single container in multi-container pods
Accept codec as parameter to CreateNewControllerFromCurrentController function. Add tests for performing a rolling update on a container in a multi-container pod.
2015-12-04 18:38:55 +00:00
k8s-merge-robot
140df5f809 Merge pull request #17220 from kargakis/kubectl-scale-deployments
Auto commit by PR queue bot
2015-11-30 04:19:58 -08:00
k8s-merge-robot
5f10b70652 Merge pull request #17766 from hurf/doc_nits
Auto commit by PR queue bot
2015-11-27 02:22:41 -08:00
k8s-merge-robot
70d2a02959 Merge pull request #17701 from hurf/anno_label
Auto commit by PR queue bot
2015-11-26 15:29:46 -08:00
hurf
8b6ef01667 fix description of -f option of autoscale command
use 'autoscale' instead of 'get form the server'
2015-11-25 19:00:56 +08:00
hurf
27d6b58ba5 fix a nit in long description of attach command
remove an extra 'a'
2015-11-25 18:57:03 +08:00
Michail Kargakis
99fc35880b kubectl: Support scaling deployments
This commit adds support for using kubectl scale to scale deployments. Makes use of the
deployments/scale endpoint instead of updating deployment.spec.replicas directly.
2015-11-25 11:26:40 +01:00
kargakis
523b6ec7e3 edit: Make environment variables composable
It also adds support for KUBE_EDITOR and GIT_EDITOR which were already
advertised in the edit usage message.
2015-11-25 11:23:23 +01:00
hurf
ad26db7f45 Annotate support label
allow "kubectl annotate pods -l app=nginx"
2015-11-25 14:13:39 +08:00
Janet Kuo
c0c02c95c4 kubectl run to produce deployment and job 2015-11-24 10:21:31 -08:00
hurf
1270764eb9 Fix description errro for client-certificate option
From "client key file" to "client certificate file".
2015-11-24 09:33:35 +08:00
k8s-merge-robot
c974e0739b Merge pull request #17236 from fabianofranz/wrong_attach_example
Auto commit by PR queue bot
2015-11-23 09:57:30 -08:00
k8s-merge-robot
6d2b92a0be Merge pull request #17269 from janetkuo/autoscale-deployments
Auto commit by PR queue bot
2015-11-21 22:23:23 -08:00
k8s-merge-robot
0e229d59f0 Merge pull request #17499 from jszczepkowski/hpa-tune
Auto commit by PR queue bot
2015-11-20 05:33:15 -08:00
k8s-merge-robot
d25cffef55 Merge pull request #17381 from caesarxuchao/add-blob
Auto commit by PR queue bot
2015-11-20 05:32:31 -08:00
Jerzy Szczepkowski
cac9e88c11 Updated kubectl help messages.
Updated kubectl help messages: added info about hpa. Fixes #17357.
2015-11-19 15:26:43 +01:00
Fabiano Franz
ab455784f5 kubectl attach only takes one argument 2015-11-17 23:16:02 -02:00
Chao Xu
0c913ed5a1 change HEAD to blob/HEAD, and add blob in versioned-docs.sh 2015-11-16 17:13:49 -08:00
Janet Kuo
8e99bae7ec Support autoscale deployments 2015-11-13 23:33:55 -08:00
hurf
ca300c180c Add printer options to Annotate
1. add return message as "resource name annotated"
2. add printer options to annotate
3. move all parameter into AnnotateOptions to make sure runT
function has no parameter.
2015-11-14 03:07:21 +08:00
Janet Kuo
88d9106705 Add help text for rollback in kubectl rolling-update 2015-11-11 13:29:54 -08:00
Jeff Lowdermilk
6868382072 Reword misleading help text for kubectl patch 2015-11-10 13:00:04 -08:00
Wojciech Tyczynski
d80e0e837c Merge pull request #10707 from kargakis/logs-with-resource-builder
logs: Use resource builder
2015-11-09 16:40:10 +01:00
k8s-merge-robot
afe121669b Merge pull request #16852 from feiskyer/kubectl-desc-ep
Auto commit by PR queue bot
2015-11-09 05:21:12 -08:00
Janet Kuo
37f35d9342 Make kubectl apply create resources if not found 2015-11-08 22:47:40 -08:00
feisky
3adb929eb9 Add kubectl describe for endpoints 2015-11-07 14:58:12 +08:00
Janet Kuo
a6a64820d7 Make generation of the apply annotation optional 2015-11-06 15:08:50 -08:00
k8s-merge-robot
4566e039bf Merge pull request #16716 from huangyuqi/add_res_types_kubctl_get
Auto commit by PR queue bot
2015-11-06 02:20:27 -08:00
kargakis
4fdb6d1331 logs: Use resource builder 2015-11-05 14:54:55 +01:00
huangyuqi
1bf2f869c7 add valid resource types for kubectl get 2015-11-04 10:12:30 +00:00
Eric Tune
0bde95f1ce Fix incorrect flag in example. 2015-10-30 15:40:05 -07:00
Daniel Smith
6219b50280 Merge pull request #16160 from kargakis/windows-fixes-for-edit
edit: Windows fixes
2015-10-27 15:44:26 -07:00
Jerzy Szczepkowski
bbee6cfcd7 Merge pull request #15461 from kargakis/relax-exposing-multiport-objects
expose: Enable exposing multiport objects
2015-10-27 10:25:54 +01:00
kargakis
73713ce268 edit: Windows fixes
Contains the following fixes for Windows users of kubectl edit:
* Defaults to notepad as the default Windows editor
* Uses CRLF line endings
* Ensures a file lock is freed
2015-10-24 17:06:49 +02:00
k8s-merge-robot
570a9dc18f Merge pull request #15796 from caesarxuchao/fix-kubectl-api-versions
Auto commit by PR queue bot
2015-10-24 01:24:31 -07:00
Tim Hockin
5c903dbcac Merge pull request #16073 from caesarxuchao/fix-htmlpreview-on-head
fix htmlpreview links to point to subdictory
2015-10-23 13:32:29 -07:00
k8s-merge-robot
a10ed3e2b1 Merge pull request #15908 from jlowdermilk/rolling-update-doc
Auto commit by PR queue bot
2015-10-23 00:52:37 -07:00
Chao Xu
eb3a80156a let kubectl api-versions use the discovery client 2015-10-22 10:19:34 -07:00
Chao Xu
316bd058d0 fix htmlpreview links to point to subdictory 2015-10-21 15:46:52 -07:00
Jeff Lowdermilk
d4de35e177 Merge pull request #15921 from brendandburns/fix2
Add a --expose flag to kubectl run
2015-10-21 13:17:26 -07:00
Jeff Lowdermilk
5bf993bf28 Validate image name for kubectl rolling-update NAME --image=IMAGE
Require distinct image from current one when starting a new
rolling-update, and exit with error if an existing in-progress update
is targeting a different image.
2015-10-21 11:48:39 -07:00
Brendan Burns
54fd60727e add a --expose flag to kubectl run 2015-10-20 20:21:09 -07:00
Janet Kuo
02e451b08c Update generated docs 2015-10-20 17:22:37 -07:00
k8s-merge-robot
e90a890e19 Merge pull request #15608 from feihujiang/removeDeprecatedShorthandInManPage
Auto commit by PR queue bot
2015-10-20 16:48:26 -07:00
Janet Kuo
8105aa44a0 Implement kubectl autoscale 2015-10-19 09:59:22 -07:00
kargakis
7d0e691520 expose: Enable exposing multiport objects
The generated service will inherit all the ports from the exposed object.
2015-10-19 11:25:14 +02:00
Clayton Coleman
e9a465d635 Make kubectl run attach behave like docker run
Have stdin closed by default, can be left open with --leave-stdin-open.
Add e2e tests for the behavior.
2015-10-16 20:33:51 -04:00
Janet Kuo
f47c2be539 Change kubectl proxy --api-prefix default to allow /apis/ 2015-10-14 15:49:52 -07:00
feihujiang
f3673b8f31 Hide deprecated shorthand in man page 2015-10-15 01:29:13 +08:00
Dawn Chen
075c3a2c71 Merge pull request #15061 from kargakis/fix-dry-run-in-expose
Fix dry run in expose
2015-10-12 12:53:04 -07:00
kargakis
4b23bf602d expose: Minor cleanup 2015-10-10 16:16:41 +02:00
Clayton Coleman
554ce403e4 Prevent attach from being served by default via the proxy 2015-10-09 14:33:40 -04:00
hurf
e1b88c6942 Integrate convertion tool to kubectl
Added 'convert' subcommand to kubectl to convert config files
between different API versions.
2015-10-09 10:15:30 +08:00
jackgr
703a3e19aa Add the kubectl apply command. 2015-10-07 17:14:51 -07:00
k8s-merge-robot
7f9c18d646 Merge pull request #14819 from mesosphere/sttts-add-kubectl-bind-address
Auto commit by PR queue bot
2015-10-02 08:05:57 -07:00
Brendan Burns
44a16834d8 Merge pull request #14087 from brendandburns/kubectl
Move the default schema cache to the home directory
2015-09-30 11:30:32 -07:00
Dr. Stefan Schimanski
687e2d8c8e Update docs 2015-09-30 15:54:01 +02:00
Brendan Burns
e827934d78 Merge pull request #12677 from andronat/kubectl_doc_cmd
A new command to read types' description from Swagger - kubectl explain
2015-09-29 19:35:37 -07:00
Brendan Burns
afea127a3e Move the default schema cache to the home directory 2015-09-28 16:26:48 -07:00
feihujiang
e31bc89232 Fix minor bugs in kubectl command 2015-09-28 13:58:31 +08:00
Anastasis Andronidis
e8b9dde623 new kubectl explain command 2015-09-26 14:25:53 +03:00
hurf
c4dc056105 Improve message from kubectl config
1.use Fprintf instead of Printf
2.output simple success messages
3.lowercase all error messages
2015-09-23 16:10:21 +08:00
Clayton Coleman
c2e90cd154 Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod
log options. Ensure the Kubelet is using a consistent, structured way to
process pod log arguments.

Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>,
?tailLines=<number>, and ?limitBytes=<number>
2015-09-21 15:39:32 -04:00
Janet Kuo
5a608446ba pull "kubectl edit" from openshift upstream 2015-09-15 19:16:23 -07:00
Jeff Lowdermilk
ebc0b02b7d Merge pull request #13613 from eparis/rework-doc-generation
Rework automatic doc generation
2015-09-15 17:35:47 -07:00
feihujiang
98689a99ec Limit the type for kubectl expose command 2015-09-15 11:17:04 +08:00
k8s-merge-robot
04837579ad Merge pull request #13460 from derekwaynecarr/run_requests
Auto commit by PR queue bot
2015-09-11 18:19:17 -07:00
k8s-merge-robot
cb481b4a00 Merge pull request #13837 from brendandburns/kubectl2
Auto commit by PR queue bot
2015-09-11 17:18:29 -07:00
Eric Paris
58d6b29e97 Rework doc generation to simplify and centralize
Just do all doc generation in the hack::util::gen-docs instead of spread
around. We also only track the generated docs in a single file for the
whole tree.
2015-09-11 19:32:08 -04:00
Brendan Burns
9ba13ff361 Address comments 2015-09-11 13:55:16 -07:00
derekwaynecarr
295b8cdf16 Add requests and limits to kubectl run 2015-09-11 10:57:21 -04:00
Brendan Burns
d9e1a00a14 Add caching for swagger schemas 2015-09-10 21:18:52 -07:00
Abhishek Shah
44ce4aa423 Create a LB for a K8S with the LB-IP provided by user. 2015-09-10 21:05:06 -07:00
Avesh Agarwal
6d6f338fac Adds servicesaccounts to kubectl get/describe cli help and docs. 2015-09-09 12:15:25 -04:00
feihujiang
84e94e39cd Support setting env vars in kubectl run 2015-09-08 14:31:29 +08:00
Dai Zuozhuo
2e2ef3e830 change -o template to -o go-template=... 2015-09-05 22:30:47 +08:00
Eric Paris
bf7646bd9e Update docs based on new spf13/cobra 2015-09-04 19:20:03 -04:00
Quinton Hoole
be19554bae Merge pull request #13383 from hurf/label_drun
Add --dry-run option for label command
2015-09-04 14:03:14 -07:00
hurf
46e7f5684c Add --dry-run option for label command
With --dry-run option, label command will print the object locally
without update it on server side.
2015-09-03 21:37:11 +08:00
feihujiang
0427711c42 Fixes upper case letters in kubectl examples 2015-09-03 12:00:21 +08:00
Abhi Shah
642ebb4994 Merge pull request #13099 from JanetKuo/kubectl-expose-deprecate-create-external-load-balancer
Deprecated kubectl flag "create-external-load-balancer"
2015-09-02 15:16:08 -07:00
Janet Kuo
18e87724c5 Deprecated kubectl flag "create-external-load-balancer" 2015-08-28 00:54:33 -07:00
hurf
961d7f995a Remove unused parameters and flags
Some params and flags are set but not used, remove them.
2015-08-27 10:40:40 +08:00
hurf
d2d96ff6e1 Add -o name for commands which use printer to output results
Added a new printer which prints 'resource/name' pair of a given
object.
2015-08-26 17:04:23 +08:00