k3s/cluster/ubuntu
k8s-merge-robot 5df9284ff4 Merge pull request #26746 from MHBauer/enable-ssh-compression
Automatic merge from submit-queue

Ubuntu: Enable ssh compression when downloading binaries during cluster creation

<!--
Checklist for submitting a Pull Request

Please remove this comment block before submitting.

1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md).
2. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md).
3. If you want this PR to automatically close an issue when it is merged,
   add `fixes #<issue number>` or `fixes #<issue number>, fixes #<issue number>`
   to close multiple issues (see: https://github.com/blog/1506-closing-issues-via-pull-requests).
4. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes) in the block below.
-->
resolves #20971 by using the options provided by ssh. 

Native ssh compression has existed for years, and the server is free to disregard the setting, so this should be safe.

With things like the kube binaries I see about a 2x speed increase. 

```
λ time scp kubes-bin.tar   9.30.182.251:/mnt/build/kubin
kubes-bin.tar                                                                                                            100%  344MB  10.7MB/s   00:32

real	0m32.284s
user	0m1.679s
sys	0m1.263s

λ time scp -C kubes-bin.tar   9.30.182.251:/mnt/build/kubin
kubes-bin.tar                                                                                                            100%  344MB  22.9MB/s   00:15

real	0m14.810s
user	0m12.858s
sys	0m0.994s

λ ls -lah kubes-bin.tar
-rw-r--r--  1 mhb  staff   344M Jun  2 15:29 kubes-bin.tar

λ tar -tf kubes-bin.tar
kubectl
master/
master/etcd
master/etcdctl
master/flanneld
master/kube-apiserver
master/kube-controller-manager
master/kube-scheduler
node/
node/flanneld
node/kube-proxy
node/kubelet
```
2016-07-19 19:21:46 -07:00
..
master Support a CNI plugin as an alternative to Flannel 2016-02-22 11:29:55 -05:00
master-flannel Support a CNI plugin as an alternative to Flannel 2016-02-22 11:29:55 -05:00
minion Support a CNI plugin as an alternative to Flannel 2016-02-22 11:29:55 -05:00
minion-flannel Support a CNI plugin as an alternative to Flannel 2016-02-22 11:29:55 -05:00
.gitignore upgrade k8s to 1.0.1 2015-07-24 13:31:52 +08:00
config-default.sh Add SSH_OPTS to config ssh and scp port 2016-07-13 09:42:27 +08:00
config-test.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deployAddons.sh move kube-dns to the cluster/addons/ directory 2016-07-14 11:44:00 -07:00
download-release.sh cluster/ubuntu/download-release.sh: if $KUBE_VERSION is set, use it. 2016-07-11 16:29:00 -07:00
namespace.yaml deprecate outdated param 2015-07-29 13:57:14 +08:00
reconfDocker.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.sh Merge pull request #26746 from MHBauer/enable-ssh-compression 2016-07-19 19:21:46 -07:00