Commit Graph

7973 Commits

Author SHA1 Message Date
Clayton Coleman
554ce403e4 Prevent attach from being served by default via the proxy 2015-10-09 14:33:40 -04:00
Clayton Coleman
363b616908 Expose exec and logs via WebSockets
Not all clients and systems can support SPDY protocols. This commit adds
support for two new websocket protocols, one to handle streaming of pod
logs from a pod, and the other to allow exec to be tunneled over
websocket.

Browser support for chunked encoding is still poor, and web consoles
that wish to show pod logs may need to make compromises to display the
output. The /pods/<name>/log endpoint now supports websocket upgrade to
the 'binary.k8s.io' subprotocol, which sends chunks of logs as binary to
the client. Messages are written as logs are streamed from the container
daemon, so flushing should be unaffected.

Browser support for raw communication over SDPY is not possible, and
some languages lack libraries for it and HTTP/2. The Kubelet supports
upgrade to WebSocket instead of SPDY, and will multiplex STDOUT/IN/ERR
over websockets by prepending each binary message with a single byte
representing the channel (0 for IN, 1 for OUT, and 2 for ERR). Because
framing on WebSockets suffers from head-of-line blocking, clients and
other server code should ensure that no particular stream blocks. An
alternative subprotocol 'base64.channel.k8s.io' base64 encodes the body
and uses '0'-'9' to represent the channel for ease of use in browsers.
2015-10-09 14:33:40 -04:00
k8s-merge-robot
2f90f660c1 Merge pull request #11368 from hurf/ctl_convert
Auto commit by PR queue bot
2015-10-09 08:57:30 -07:00
k8s-merge-robot
45cca144cb Merge pull request #15167 from yujuhong/sources_seen
Auto commit by PR queue bot
2015-10-09 08:35:40 -07:00
k8s-merge-robot
44699f5852 Merge pull request #15238 from mpuncel/mpuncel/cleanup
Auto commit by PR queue bot
2015-10-09 08:12:17 -07:00
k8s-merge-robot
b793c3edf1 Merge pull request #14700 from liggitt/kubelet_authz
Auto commit by PR queue bot
2015-10-09 03:01:43 -07:00
k8s-merge-robot
538cf72208 Merge pull request #15051 from feiskyer/kubelet/garbage-collection
Auto commit by PR queue bot
2015-10-09 02:11:47 -07:00
k8s-merge-robot
388159590d Merge pull request #15014 from ncdc/gh14995-fix-wait-goroutine-leaks
Auto commit by PR queue bot
2015-10-09 00:51:46 -07:00
Jordan Liggitt
9d6b52881d Add authentication/authorization interfaces to kubelet, always include /metrics with /stats 2015-10-09 03:10:00 -04:00
k8s-merge-robot
0fb7c80edf Merge pull request #14888 from JanetKuo/kubectl-get-list
Auto commit by PR queue bot
2015-10-09 00:03:01 -07:00
k8s-merge-robot
1f764fcd3f Merge pull request #14726 from linzichang/validation-on-list
Auto commit by PR queue bot
2015-10-08 23:38:53 -07:00
k8s-merge-robot
d9c56eed26 Merge pull request #15107 from caesarxuchao/fix-14384
Auto commit by PR queue bot
2015-10-08 21:40:52 -07:00
k8s-merge-robot
e4faa5c411 Merge pull request #15200 from yujuhong/move_types
Auto commit by PR queue bot
2015-10-08 19:50:27 -07: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
k8s-merge-robot
86fdc3f85c Merge pull request #15240 from mikedanese/job-fix-1
Auto commit by PR queue bot
2015-10-08 16:58:06 -07:00
k8s-merge-robot
79b70df747 Merge pull request #15273 from nikhiljindal/deploymentAPI
Auto commit by PR queue bot
2015-10-08 16:28:53 -07:00
feisky
fb04edea3a Replace rkt --grace-period and --expire-prepared with gcPolicy.MinAge 2015-10-09 06:57:10 +08:00
feisky
d624c7de51 Pass the ContainerGCPolicy in Runtime.GarbageCollect 2015-10-09 06:57:10 +08:00
feisky
69867fb502 Refactor container gc tests 2015-10-09 06:57:09 +08:00
feisky
4c8a836260 Move original container gc to docker runtime 2015-10-09 06:57:09 +08:00
feisky
35cf8ab7d4 Use runtime instread of dockerclient in container gc 2015-10-09 06:54:38 +08:00
Yu-Ju Hong
098ab05997 kubelet: move common types to kubelet/types
This would faciliate tasks such as moving code in pkg/kubelet to sub packages.
2015-10-08 14:38:01 -07:00
Robert Bailey
f828c9a49c Merge pull request #15185 from yujuhong/fix_annotation
kubelet: fix mirror pod creation/deletion
2015-10-08 14:07:45 -07:00
nikhiljindal
119150fd33 Updating API comments 2015-10-08 13:55:45 -07:00
Robert Bailey
be3fc9007a Merge pull request #14626 from jackgr/apply_annotation
Add calls to set annotation for kubectl apply
2015-10-08 12:44:42 -07:00
Robert Bailey
49d6c86eb7 Merge pull request #14621 from jackgr/kubectl_apply
Add the kubectl apply command
2015-10-08 12:44:32 -07:00
Robert Bailey
f9364da306 Merge pull request #13820 from jackgr/apply_patch
Add method to apply strategic merge patch
2015-10-08 12:44:13 -07:00
k8s-merge-robot
8982776b54 Merge pull request #15237 from mikedanese/ds-bug-3
Auto commit by PR queue bot
2015-10-08 10:50:59 -07:00
Mike Danese
73f7242027 rename JobStatus.Unsuccessful => JobStatus.Failed, JobStatus.Successful => JobStatus.Succeeded 2015-10-08 10:41:22 -07:00
Piotr Szczesniak
952a058357 Merge pull request #15153 from wojtek-t/common_resync_period
Extend resyncPeriods in controllers in production.
2015-10-08 14:07:04 +02:00
k8s-merge-robot
f754f05bd6 Merge pull request #15257 from nikhiljindal/deploymentScaleDown
Auto commit by PR queue bot
2015-10-08 04:36:59 -07:00
Piotr Szczesniak
708102af36 Merge pull request #14714 from mqliang/node-misleading
Eliminate misleading code
2015-10-08 13:31:04 +02:00
Piotr Szczesniak
6217869085 Merge pull request #14672 from derekwaynecarr/rc_status
Add replication controller status subresource
2015-10-08 13:30:29 +02:00
Piotr Szczesniak
726f1e17c4 Merge pull request #14173 from runningwild/PR0
If an isolator's request is nil, populate it with the limit and vice versa
2015-10-08 13:07:08 +02:00
Piotr Szczesniak
95b293c615 Merge pull request #13516 from samsabed/backoff-image-reason
backoff image pulling on failure
2015-10-08 13:05:32 +02:00
Piotr Szczesniak
dcfc63e181 Merge pull request #15133 from mqliang/ErrMsg
Use string constant instead of duplicating
2015-10-08 11:41:19 +02:00
Wojciech Tyczynski
df79026b79 Extend resyncPeriods in controllers in production. 2015-10-08 09:10:09 +02:00
k8s-merge-robot
0e5478efae Merge pull request #15269 from brendandburns/apis
Auto commit by PR queue bot
2015-10-07 21:38:38 -07:00
k8s-merge-robot
04f055c48d Merge pull request #15258 from saad-ali/repro15106
Auto commit by PR queue bot
2015-10-07 19:23:10 -07:00
k8s-merge-robot
4cb021f5df Merge pull request #15254 from bprashanth/healthchecks
Auto commit by PR queue bot
2015-10-07 18:12:45 -07:00
jackgr
ef3f64612e Add calls to set annotation for kubectl apply 2015-10-07 17:15:56 -07:00
jackgr
703a3e19aa Add the kubectl apply command. 2015-10-07 17:14:51 -07:00
jackgr
ddda379b1b Add method to apply strategic merge patch. 2015-10-07 17:14:11 -07:00
nikhiljindal
b0b1a35aae Adding logic to scale down new RC 2015-10-07 15:53:47 -07:00
Brendan Burns
deb3514c02 Fix ExtractList to work with v1.List 2015-10-07 15:48:38 -07:00
Janet Kuo
aa307da594 Merge pull request #15124 from timstclair/container-id
Use strong type for container ID
2015-10-07 15:15:16 -07:00
Mike Danese
e5fe0c0c6e revise meaning of DaemonsSpecStatus.CurrentNumberScheduled 2015-10-07 14:29:34 -07:00
saadali
1bb4809841 Prevent GCE PD attach code from succeding if disk failed to attach. 2015-10-07 14:07:33 -07:00
Mike Danese
591d7c42a4 Merge pull request #15198 from mikedanese/ds-bug-2
include name match in mischeduled check in daemonset controller
2015-10-07 13:54:42 -07:00
Brendan Burns
3e6b6d9cfb Merge pull request #15242 from mikedanese/sw-fix
fix master swagger spec
2015-10-07 13:34:14 -07:00