Commit Graph

303 Commits (dfb400e2e986a607b2b8b528ecbdcb726c5b4ddb)

Author SHA1 Message Date
Andy Goldstein 7d02ea9bb7 Fix race condition for consuming podIP via downward API. 2015-10-13 16:39:11 -04:00
Wojciech Tyczynski f837b6166d Extend logging for #15540 2015-10-13 13:38:08 +02: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
Prashanth Balasubramanian 941963d953 Ingress E2E 2015-10-07 14:33:19 -07:00
Janet Kuo f4cb23975b Merge pull request #15044 from nikhiljindal/deploymentController
Enabling deployments on kubernernetes-upgrade-gce test suite
2015-10-06 18:11:00 -07:00
nikhiljindal c062afc6de Enabling deployments on kubernernetes-upgrade-gce test suite 2015-10-06 14:50:25 -07:00
Brendan Burns 7ba48583fa Merge pull request #15137 from brendandburns/flakes3
Add an environment variable override for AWS ssh keys
2015-10-06 10:43:45 -07:00
Brendan Burns f7105ea30f Add an environment variable override for AWS ssh keys 2015-10-05 21:14:06 -07:00
Tim Hockin ada74893bf Reduce timeouts in e2e tests by polling before sleeping 2015-10-05 12:49:46 -07:00
Tim Hockin a51ba71a65 Make Service e2e run a bit faster 2015-10-05 12:49:46 -07:00
Alex Robinson 0aa5c16f38 Merge pull request #14646 from mesosphere/sttts-fix-kubeproxy-test
Fix e2e tests for providers without SSH to the nodes
2015-10-05 11:56:09 -07:00
Marcin Wielgus 007a70d837 Merge pull request #14984 from mwielgus/spark_fix
Wait for at least 1 endpoint in E2E test for examples
2015-10-05 17:47:24 +02:00
Marcin Wielgus d5c40479f1 Wait for at least 1 endpoint in E2E test for examples 2015-10-05 16:47:52 +02:00
Dr. Stefan Schimanski a68e0848dc Factor out providers which support SSH in e2e tests 2015-10-04 10:58:17 +02:00
k8s-merge-robot 2c81a664f2 Merge pull request #14827 from wojtek-t/export_metrics_for_dashboard
Auto commit by PR queue bot
2015-10-02 14:57:44 -07:00
k8s-merge-robot 7007481f00 Merge pull request #14917 from nikhiljindal/deploymentController
Auto commit by PR queue bot
2015-10-02 13:18:49 -07:00
k8s-merge-robot 2eae864f26 Merge pull request #14348 from jiangyaoguo/fix-kubeproxy-e2e
Auto commit by PR queue bot
2015-10-02 04:20:01 -07:00
Wojciech Tyczynski 3ae276cc0b Print latency metrics in too-friendly way. 2015-10-02 11:03:56 +02:00
nikhiljindal c6deb442f9 Adding events to deployment 2015-10-01 16:38:08 -07:00
jiangyaoguo 020f3b164c fix kubeproxy e2e 2015-09-30 20:47:35 +08:00
Brendan Burns 09337d1d1e Increase the pod ready timeout. We've seen problems in the reboot tests. 2015-09-29 17:10:46 -07:00
Yu-Ju Hong 1307f081f2 e2e: RunRC wait until all pods created by RC are ready
kubelet sends up status updates to flip the ready condition of a pod after the
pod is already in the running state. RunRC should wait until the pod condition
is ready to make sure there is no pending status update which may affect the
follow-up performance test.
2015-09-28 17:35:01 -07:00
Eric Tune c340d664da Merge pull request #14046 from soltysh/job_controller_reaper_scaler
Reaper and scaler for jobs
2015-09-24 13:54:31 -07:00
gmarek 1459a1523f Add an option to modify timeout for namespace duration in e2e Framework 2015-09-24 10:32:34 +02:00
Maciej Szulik 48775319d9 Reaper and scaler for jobs 2015-09-23 13:06:34 +02:00
Jeff Grafton 11f3785023 e2e: set default timeout on Client 2015-09-21 12:34:51 -07:00
gmarek 393baa5157 Allow Density to run on non-GCE/GKE provider, rename deleteTestingNS
function.
2015-09-21 10:43:45 +02:00
Marek Grabowski 98a971cc2e Revert "Update prometheus library usage" 2015-09-19 22:18:15 +02:00
Tim St. Clair 045238563a Remove deprecated prometheus extraction libraries 2015-09-18 14:38:44 -07:00
Tim St. Clair 3a94f3b5c2 Use up-to-date prometheus extraction libraries 2015-09-18 14:38:44 -07:00
Clayton Coleman bf2decce81 Add NotReadyAddresses to Endpoints
In many cases clients may wish to view not ready addresses for endpoints
in order to do set membership prior to a pod being ready. For instance,
a pod that uses the service endpoints to connect to other pods under
the same service, but does not want to signal ready before it has
contacted at least a minimal number of other pods.

This is backwards compatible with old servers and clients. There is
an additional cost in size of endpoints before services ramp up, which
will add minor CPU and memory use for services that have a significant
number of pods which have not become ready.
2015-09-17 09:41:56 -04:00
gmarek 96a90f45c3 Allow disabling waiting for a service account in e2e tests 2015-09-15 12:49:49 -04:00
Daniel Smith b225c1d47a Run gofmt (separate commit for easy rebases) 2015-09-10 17:17:59 -07:00
Daniel Smith 15b30b8b09 Move version agnostic parts of client
pkg/client/unversioned/cache -> pkg/client/cache
pkg/client/unversioned/record -> pkg/client/record
2015-09-10 17:17:59 -07:00
tummychow 78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Wojciech Tyczynski b85d0557b4 Revert #13052 2015-09-08 09:40:12 +02:00
Dai Zuozhuo 2e2ef3e830 change -o template to -o go-template=... 2015-09-05 22:30:47 +08:00
Andy Goldstein c83786979c Various exec fixes
If stdin is noninteractive, the io.Copy from stdin to remoteStdin will
unblock when it finishes reading from stdin. In this case, make sure to
close remoteStdin so the server knows the client won't be sending any
more data. This ensures that the remote process terminates. For example:

echo foo | kubectl exec -i <pod> -- cat

Without this change, the `cat` process never terminates and `kubectl
exec` hangs.

Fix interactive exec sessions hanging after you type 'exit'.

Add e2e test to cover noninteractive stdin: `echo a | kubectl exec -i <pod>
cat`

Add e2e test to cover psuedo-interactive stdin: `kubectl exec -i <pod> bash`

Prep for sending multiple data frames over multiple streams in remote command
test, which is more likely to find flakes (requires bump of spdystream
once an issue with the frame worker queues not being fully drained when
a goaway frame is received).
2015-09-04 10:40:53 -04:00
Abhi Shah 473c51593a Merge pull request #13502 from jszczepkowski/e2e-clustersize
e2e test function waitForClusterSize waits for not-ready nodes to go out.
2015-09-03 11:15:54 -07:00
Marcin Wielgus 3e9932557d Merge pull request #13052 from pmorie/podip-fix
Fix race condition for consuming podIP via downward API
2015-09-02 16:04:01 +02:00
Wojciech Tyczynski 4d702d2fd5 Fix scalability test suite 2015-09-02 11:53:37 +02:00
Jerzy Szczepkowski 1d450ad3d1 Fixed e2e test waitForClusterSize function to wait for not-ready nodes to go out.
Fixed e2e test waitForClusterSize function to wait for not-ready nodes to go out. Fixes #13440.
2015-09-02 10:55:59 +02:00
Paul Morie 4ff66bd70a Fix race exposing pod IP via downward API 2015-08-31 19:18:58 -04:00
Clayton Coleman e5600f7a84 Dump more pod status when an e2e test fails 2015-08-30 18:25:54 -04:00
Max Forbes 8ca0654f94 Pass mbforbes TODOs to others. 2015-08-26 10:05:34 -07:00
Zach Loafman 95a60d6085 Merge pull request #12926 from smarterclayton/cleanup_graceful
Cleanup more extensively in e2e (0/7)
2015-08-20 10:25:15 -07:00
Clayton Coleman 9267f829eb Update tests to prepare for graceful deletion
For cases where we want to immediately cleanup the pod, start using
gracePeriod 0 in test cases.
2015-08-19 22:20:29 -04:00
Clayton Coleman dcdbc646ed RC already being deleted shouldn't fail DeleteRC 2015-08-19 17:43:34 -04:00
Clayton Coleman 611530889f Cleanup more extensively in e2e 2015-08-19 17:43:34 -04:00
Piotr Szczesniak 41b8fdcd76 Increased timeout while waiting for namespace deletion
Removed waiting for namespace to be deleted in Density and Load e2e tests
2015-08-19 11:17:59 +02:00