Skip to content

Commit

Permalink
Merge pull request kubernetes#30503 from wojtek-t/optimize_gci
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Avoid unnecessary copies on GCI initialization.

The issue I faced was that when starting a cluster I was getting:
```
Aug 12 11:12:46 e2e-test-wojtekt-master configure.sh[1079]: cp: error writing '/home/kubernetes/kubernetes-src.tar.gz': No space left on device
```

This PR reduces amount of space that is needed on startup, as well as this speeds up starting cluster.

@lavalamp @dchen1107
  • Loading branch information
Kubernetes Submit Queue authored Aug 12, 2016
2 parents 72f41ff + 4d27f99 commit 936c517
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cluster/gce/gci/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,8 @@ function install-kube-binary-config {
rm -f "${KUBE_HOME}/${cni_tar}"
fi

cp "${KUBE_HOME}/kubernetes/LICENSES" "${KUBE_HOME}"
cp "${KUBE_HOME}/kubernetes/kubernetes-src.tar.gz" "${KUBE_HOME}"
chmod a+r "${KUBE_HOME}/kubernetes/LICENSES"
chmod a+r "${KUBE_HOME}/kubernetes/kubernetes-src.tar.gz"
mv "${KUBE_HOME}/kubernetes/LICENSES" "${KUBE_HOME}"
mv "${KUBE_HOME}/kubernetes/kubernetes-src.tar.gz" "${KUBE_HOME}"

# Put kube-system pods manifests in ${KUBE_HOME}/kube-manifests/.
dst_dir="${KUBE_HOME}/kube-manifests"
Expand Down

0 comments on commit 936c517

Please sign in to comment.