From bbc8183887b05ad89adf506e45156063fc1d31e7 Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Fri, 21 Oct 2016 12:54:00 -0700 Subject: [PATCH 1/2] Adding rkt binary to GCI nodes via cloud-init. This is required for mounting storage volumes via containers. Signed-off-by: Vishnu kannan --- cluster/gce/gci/configure.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cluster/gce/gci/configure.sh b/cluster/gce/gci/configure.sh index 8c59ca2ac67..43d5f116406 100644 --- a/cluster/gce/gci/configure.sh +++ b/cluster/gce/gci/configure.sh @@ -98,6 +98,15 @@ function split-commas { echo $1 | tr "," "\n" } +function install-rkt { + local -r rkt_binary="rkt-v1.17.0" + local -r rkt_sha1="e9183dcae0683e345cc73fef98ffd80a253d371a" + download-or-bust "${rkt_sha1}" "https://storage.googleapis.com/kubernetes-release/rkt/${rkt_binary}" + local -r rkt_dst="${KUBE_HOME}/bin/rkt" + mv "${KUBE_HOME}/${rkt_binary}" "${rkt_dst}" + chmod a+x "${rkt_dst}" +} + # Downloads kubernetes binaries and kube-system manifest tarball, unpacks them, # and places them into suitable directories. Files are placed in /home/kubernetes. function install-kube-binary-config { @@ -175,6 +184,9 @@ function install-kube-binary-config { cp "${dst_dir}/kubernetes/gci-trusty/health-monitor.sh" "${KUBE_HOME}/bin/health-monitor.sh" chmod -R 755 "${kube_bin}" + # Install rkt binary to allow mounting storage volumes in GCI + install-rkt + # Clean up. rm -rf "${KUBE_HOME}/kubernetes" rm -f "${KUBE_HOME}/${server_binary_tar}" From 968e7ebe1d67f3f832566513fd3fa46759265c92 Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Tue, 25 Oct 2016 12:37:55 -0700 Subject: [PATCH 2/2] add rkt to GCI node e2e test images Signed-off-by: Vishnu kannan --- test/e2e_node/jenkins/gci-init.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e_node/jenkins/gci-init.yaml b/test/e2e_node/jenkins/gci-init.yaml index 834a5e39a74..4d82751f701 100644 --- a/test/e2e_node/jenkins/gci-init.yaml +++ b/test/e2e_node/jenkins/gci-init.yaml @@ -3,3 +3,8 @@ runcmd: - mount /tmp /tmp -o remount,exec,suid - usermod -a -G docker jenkins + - mkdir -p /home/kubernetes/bin/ + - mount -B /home/kubernetes/bin /home/kubernetes/bin + - mount -B -o remount,exec /home/kubernetes/bin + - wget https://storage.googleapis.com/kubernetes-release/rkt/rkt-v1.17.0 -O /home/kubernetes/bin/rkt + - chmod a+x /home/kubernetes/bin/rkt