From 3045a42ee7cf729346c0638a21411a239e9474b6 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Thu, 19 Oct 2017 15:25:16 -0400 Subject: Add K8s Installation Guide Change-Id: I293a48d25b1a7674f0105ced4b4d30facbd50aec Signed-off-by: Guo Ruijing --- docs/release/userguide/gap-kubernetes.rst | 0 docs/release/userguide/gap-openstack.rst | 0 docs/release/userguide/index.rst | 9 +-------- docs/release/userguide/install.rst | 31 +++++++++++++++++++++++++++++++ 4 files changed, 32 insertions(+), 8 deletions(-) delete mode 100644 docs/release/userguide/gap-kubernetes.rst delete mode 100644 docs/release/userguide/gap-openstack.rst create mode 100644 docs/release/userguide/install.rst (limited to 'docs/release/userguide') diff --git a/docs/release/userguide/gap-kubernetes.rst b/docs/release/userguide/gap-kubernetes.rst deleted file mode 100644 index e69de29..0000000 diff --git a/docs/release/userguide/gap-openstack.rst b/docs/release/userguide/gap-openstack.rst deleted file mode 100644 index e69de29..0000000 diff --git a/docs/release/userguide/index.rst b/docs/release/userguide/index.rst index 28b617c..3bb98d3 100644 --- a/docs/release/userguide/index.rst +++ b/docs/release/userguide/index.rst @@ -11,14 +11,7 @@ Container4NFV User Guide :Editors: Xuan Jia (China Mobile) :Authors: Xuan Jia (China Mobile) -:Abstract: Container4NFV provides the users with gap analysis regarding container - feature requirements with Kubernetes, OpenStack. The gap analysis - serves as feature specific user guides and references when a user you - may leverage the container feature in the platform and need to perform - some container releated operations .. toctree:: :maxdepth: 3 - gap-kubernetes.rst - gap-openstack.rst - + install.rst diff --git a/docs/release/userguide/install.rst b/docs/release/userguide/install.rst new file mode 100644 index 0000000..07d0bbd --- /dev/null +++ b/docs/release/userguide/install.rst @@ -0,0 +1,31 @@ +Installation +============ + +Vagrant is installed in Ubuntu 16.04. +vagrant is to create kubernetes cluster using kubeadm. +kubernetes installation by kubeadm can be refered to +https://kubernetes.io/docs/getting-started-guides/kubeadm. + +Vagrant Setup +------------- + +sudo apt-get install -y virtualbox +wget --no-check-certificate https://releases.hashicorp.com/vagrant/1.8.7/vagrant_1.8.7_x86_64.deb +sudo dpkg -i vagrant_1.8.7_x86_64.deb + +K8s Setup +--------- + +git clone http://gerrit.opnfv.org/gerrit/container4nfv -b stable/euphrates +cd container4nfv/src/vagrant/k8s_kubeadm/ +vagrant up + +Run K8s Example +--------------- +vagrant ssh master -c "kubectl apply -f /vagrant/examples/virtio-user.yaml" + + +K8s Cleanup +----------- + +vagrant destroy -f -- cgit 1.2.3-korg