k3s/cluster
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
..
addons move kube-dns to the cluster/addons/ directory 2016-07-14 11:44:00 -07:00
aws Splitting OS_DISTRIBUTION into NODE_OS_DISTRIBUTION and 2016-07-15 12:02:31 -07:00
azure Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
azure-legacy Use make as the main build tool 2016-07-12 21:52:00 -07:00
centos Merge pull request #26746 from MHBauer/enable-ssh-compression 2016-07-19 19:21:46 -07:00
gce Merge pull request #29140 from maisem/gce_on_cvm 2016-07-18 20:06:56 -07:00
gke Merge pull request #28268 from cjcullen/expr 2016-07-01 21:41:11 -07:00
images Merge pull request #28489 from liyimeng/patch-1 2016-07-18 17:11:35 -07:00
juju Fixed several typos 2016-07-13 15:06:24 +01:00
kubemark Splitting OS_DISTRIBUTION into NODE_OS_DISTRIBUTION and 2016-07-15 12:02:31 -07:00
lib Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
libvirt-coreos Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
local Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mesos/docker move kube-dns to the cluster/addons/ directory 2016-07-14 11:44:00 -07:00
openstack-heat Fixes #28205, Check release tar location for Openstack-Heat provider 2016-07-08 08:45:47 -07:00
ovirt
photon-controller Merge pull request #26746 from MHBauer/enable-ssh-compression 2016-07-19 19:21:46 -07:00
rackspace Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
saltbase fix logrotate config (again) 2016-07-18 15:37:00 -07:00
skeleton Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
ubuntu Merge pull request #26746 from MHBauer/enable-ssh-compression 2016-07-19 19:21:46 -07:00
vagrant Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
vsphere Merge pull request #26746 from MHBauer/enable-ssh-compression 2016-07-19 19:21:46 -07:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00
README.md add maintenance notice to cluster/README 2016-06-13 11:47:30 -07:00
common.sh GCE bring-up: Differentiate NODE_TAGS from NODE_INSTANCE_PREFIX 2016-07-18 14:20:45 -07:00
get-kube-local.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
get-kube.sh Merge pull request #25473 from andreykurilin/get_kube 2016-07-05 11:27:47 -07:00
kube-down.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kube-push.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kube-up.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kube-util.sh Unset KUBERNETES_PROVIDER when KUBERNETES_CONFORMANCE_TEST is set 2016-07-11 18:43:37 +02:00
kubectl.sh Make releases work 2016-07-12 21:52:54 -07:00
log-dump.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
options.md
test-e2e.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
test-network.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
test-smoke.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
update-storage-objects.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
validate-cluster.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00

README.md

Cluster Configuration

Deprecation Notice: This directory has entered maintainence mode and will not be accepting new providers. Please submit new automation deployments to kube-deploy. Deployments in this directory will continue to be maintained and supported at their current level of support.

The scripts and data in this directory automate creation and configuration of a Kubernetes cluster, including networking, DNS, nodes, and master components.

See the getting-started guides for examples of how to use the scripts.

cloudprovider/config-default.sh contains a set of tweakable definitions/parameters for the cluster.

The heavy lifting of configuring the VMs is done by SaltStack.

Analytics