diff options
author | Tomofumi Hayashi <tohayash@redhat.com> | 2017-09-22 18:09:42 +0900 |
---|---|---|
committer | Tomofumi Hayashi <tohayash@redhat.com> | 2017-09-22 18:14:08 +0900 |
commit | 651df6f76b133cdae77df1bbbf1ab37d2a8d891c (patch) | |
tree | a682ed1d19e633dcf5b672a7efbdf66f1c747aef /build | |
parent | fbc49a7d84eefbecb2ef9774bae99d30e66a52be (diff) |
Add kubernetes repo and install RPMS into overcloud images
This change introduces k8s into overcloud images. It just installs
kubernetes rpms only, so further configuration is required to
activate k8s at overcloud nodes and it will be taken care of other
diffs.
Change-Id: I606d176812705802790243ae4e95988a591c5fe6
Signed-off-by: Tomofumi Hayashi <s1061123@gmail.com>
Diffstat (limited to 'build')
-rwxr-xr-x | build/overcloud-full.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/overcloud-full.sh b/build/overcloud-full.sh index cc335c82..b7711a06 100755 --- a/build/overcloud-full.sh +++ b/build/overcloud-full.sh @@ -115,6 +115,18 @@ enabled=1 gpgcheck=0 EOF +# Kubernetes Repo +cat > ${BUILD_DIR}/kubernetes.repo << EOF +[kubernetes] +name=Kubernetes +baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 +enabled=1 +gpgcheck=1 +repo_gpgcheck=1 +gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg + https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg +EOF + # Get Real Time Kernel from kvm4nfv populate_cache $kvmfornfv_uri_base/$kvmfornfv_kernel_rpm @@ -136,6 +148,7 @@ LIBGUESTFS_BACKEND=direct virt-customize \ --upload ${BUILD_DIR}/puppet-fdio.tar.gz:/etc/puppet/modules \ --run-command "cd /etc/puppet/modules && tar xzf puppet-fdio.tar.gz" \ --upload ${BUILD_DIR}/fdio.repo:/etc/yum.repos.d/ \ + --upload ${BUILD_DIR}/kubernetes.repo:/etc/yum.repos.d/ \ --run-command "mkdir /root/fdio" \ --upload ${BUILD_DIR}/noarch/$netvpp_pkg:/root/fdio \ $fdio_pkg_str \ @@ -147,6 +160,7 @@ LIBGUESTFS_BACKEND=direct virt-customize \ --install python2-networking-sfc \ --install python-etcd,puppet-etcd \ --install patch \ + --install docker,kubelet,kubeadm,kubectl,kubernetes-cni \ -a overcloud-full_build.qcow2 # upload and install barometer packages |