Commit Graph

72 Commits

Author SHA1 Message Date
Victor Marmol
43029345f9 Merge pull request #7973 from dchen1107/podstatus
Add kubectl log --previous support to view last terminated container log
2015-05-11 17:08:45 -07:00
Dawn Chen
ecaf0874b2 Introduce --previous option to kubectl log 2015-05-11 10:14:22 -07:00
deads2k
19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
Brendan Burns
c9e33e197d Add support for --rollback. 2015-05-06 10:21:35 -07:00
Rohit Jnagal
9cbfb0c3f9 Add --hostport to run-container.
This helps as a starting point to show a single-machine container.
Its easier to use this as an example to show where host port mapping breaks and move on to
services.
2015-05-01 23:45:03 +00:00
Eric Paris
ea9d6dfee6 Update license boilerplate for docs/man/md2man-all.sh 2015-05-01 13:50:14 -04:00
Clayton Coleman
d03b5299f9 Merge pull request #7432 from piosz/termination_notice
Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
2015-04-30 13:55:51 -04:00
Piotr Szczesniak
11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Rohit Jnagal
0a8b136ee6 Fix typo in 'kubectl expose' examples. 2015-04-30 06:02:16 +00:00
Brendan Burns
e1256c0802 Make delete actually stop resources by default.
Refactor for shared code.
2015-04-28 14:36:43 -07:00
Brendan Burns
591d98b6b2 Add replication controller renaming as a cleanup option. 2015-04-27 20:38:20 -07:00
Brendan Burns
217e6ff0d0 First part of improved rolling update, allow dynamic next replication controller generation. 2015-04-24 15:19:00 -07:00
Jeff Lowdermilk
a8e2f6e9c8 Add examples for kubectl describe, and make gendocs less spammy
Makes hack/{run/verify}-gendocs.sh ignore generated-timestamp-only
changes so minor changes to kubectl don't have to touch the entire
set of md docs.
2015-04-23 14:53:10 -07:00
Jeff Lowdermilk
fa6ce7b7bf Add a --raw flag to kubectl config view
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
Kenjiro Nakayama
2e702b0c61 Replace hostname -f with uname -n 2015-04-20 14:16:21 -07:00
Fabio Yeon
c6ef2ddf8a Fix "validate-cluster.sh" to use "kubectl get componentstatus". 2015-04-17 11:59:53 -07:00
Jeff Lowdermilk
97e4549170 Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
Tim Hockin
c2bacd588d Stop using dockerfile/* images
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx.  Fix all
users in our tree.  Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
deads2k
de4be5422c change kubeconfig loading order 2015-04-16 13:05:09 -04:00
Xiang Li
5f4b2f5551 docs: generate docs 2015-04-14 12:53:37 -07:00
deads2k
bac5cbbe82 add flattening and minifying options to config view 2015-04-14 10:23:10 -04:00
Eric Paris
26149bd83d Doc generation should remove old doc files
Right now, our doc generation scripts notice if you make changes and
don't regen docs, don't include new docs, etc.  But they miss it if your
changes should have REMOVED a doc.  Both kubectl-apiversion and
kubectl-clusterinfo should have been removed, but weren't.

This patch starts tracking all generated doc files and will cause
problems if files should be removed and aren't.
2015-04-13 17:48:24 -04:00
deads2k
b2e3f2185e make kubectl config behave more expectedly 2015-04-09 15:43:57 -04:00
Jeff Lowdermilk
ca6f1a1bc7 Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
fix kubeconfig serialization
2015-04-09 09:41:26 -07:00
nikhiljindal
fe60be3179 Moving v1beta1 kubectl examples to v1beta3 2015-04-08 13:08:13 -07:00
deads2k
5c4b6583e4 fix kubectl config view to respect serialization formats 2015-04-07 08:07:24 -04:00
nikhiljindal
f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Sam Ghods
ca18e86877 Make naming of kubectl subcommands consistent 2015-04-02 16:14:53 -07:00
Alex Robinson
68ca910c1b Fix the kubectl docs at head. 2015-04-01 21:59:26 +00:00
Tim Hockin
f928f52a4a Alias --container-port to --target-port in kubectl 2015-03-26 17:59:46 -07:00
Jeff Lowdermilk
653b7e629d Merge pull request #5977 from smarterclayton/allow_expose_to_handle_other_resources
Allow `kubectl expose` to be polymorphic to the source of the selector
2015-03-26 13:23:21 -07:00
Jeff Lowdermilk
fc2eb66d9f Merge pull request #5976 from smarterclayton/support_resource_builder_on_label
`kubectl label` should support resource builder
2015-03-26 13:21:56 -07:00
Clayton Coleman
64f91f7dac Allow kubectl expose to be polymorphic to the source of the selector
Allows exposing new resource types to be exposed (OpenShift deployment
controllers, copying services, and other resources that will have
pod label selectors).

Also fixed a bug where the selector wasn't exposed because of parameter
defaulting.
2015-03-26 14:36:53 -04:00
Clayton Coleman
1e496696ca Merge pull request #5903 from smarterclayton/support_resources_by_type_and_name
Allow resource.Builder commands to take arguments by type/name
2015-03-26 14:23:03 -04:00
Clayton Coleman
68c46e7f52 kubectl label should support resource builder
Allow applying labels to all resources, by existing selector, and
soon allow multiple selection.
2015-03-26 14:01:05 -04:00
Clayton Coleman
0dd625ffd3 Order the commands in kubectl by importance and function
Move the client config commands towards the bottom, keep the primary
verbs near the top.  Version goes at the bottom.
2015-03-26 10:19:06 -04:00
Clayton Coleman
581d7cd789 Allow resource.Builder commands to take arguments by type/name
Will allow xarg behavior to fetch resources across multiple types.
Changes 'create', 'get', 'update', 'stop', and 'delete' to output
<resourceType>/<name>.
2015-03-25 20:39:22 -04:00
Brendan Burns
a18ec3be88 Update spf13/cobra with recent commits. 2015-03-23 21:06:45 -07:00
Brendan Burns
c66caa5336 Revert "Revert "Update cobra/pflag. Also update generated kubectl documentation.""
This reverts commit 69432e8b2f.

    COMMIT_BLOCKED_ON_GENDOCS
2015-03-23 21:06:45 -07:00
CJ Cullen
f6d8d5f800 Merge pull request #5522 from fabioy/expose-label.fix
Add "--labels" option to the "expose" kubectl command.
2015-03-19 14:40:15 -07:00
fabioy
401451c510 Add "--labels" option to the "expose" kubectl command. 2015-03-17 09:47:57 -07:00
Young
63f7d47ffd update docs after update apis 2015-03-17 16:30:53 +00:00
Piotr Szczesniak
69432e8b2f Revert "Update cobra/pflag. Also update generated kubectl documentation." 2015-03-16 12:21:20 +01:00
Brendan Burns
cf213ab79c Update generated docs, given upstream cobra/pflag changes. 2015-03-13 14:22:06 -07:00
Jeff Lowdermilk
a5746c9a0e Fix md generation for kubectl docs
Display usage string, not long help, as code, remove angle brackets from
output (.md interprets as tags and hides).
2015-03-11 16:42:40 -07:00
Jerzy Szczepkowski
110ab79f05 Added support for labels to "kubectl stop".
Added support for labels and --all to "kubectl stop". Fixes #5178.
2015-03-11 09:43:29 +01:00
Yu-Ju Hong
748bebe46f Fix typos in docs/man/README.md 2015-03-06 14:01:26 -08:00
Eric Tune
662189ebc2 Merge pull request #4967 from jlowdermilk/kubeconfig
Simplify generating kubeconfig with embeded cert data
2015-03-04 08:38:43 -08:00
Jeff Lowdermilk
6e704d174d Simplify generating kubeconfig with embeded cert data 2015-03-03 12:18:07 -08:00
Piotr Szczesniak
e92192d379 Added new command clusterinfo to kubectl
This is first version of the command. It prints IPs of master and cluster
services. Should be improved once generalized labels are implemented #341.

It requires label kubernet.io/cluster-service=true set for cluster services.

Follow up cl after discussion in #4417.
2015-03-03 20:14:24 +01:00