From 87e6c1419cab82ce5b0f828c360ac38120103993 Mon Sep 17 00:00:00 2001 From: trevortao Date: Thu, 25 Jan 2018 14:22:12 +0800 Subject: Add Kubernetes deployment scenario for arm server 1. README.rst: installation guide 2. Scenario1: Kubernetes_basic, a basic Kubernetes cluster with 2 nodes and Flannel CNI plugin, including the deployment scripts, and an example use case We may add more Kubernetes scenarios in the future Change-Id: I3a0189533fdf99f0a80fd76c9e6cf96ff4a7e9f0 Signed-off-by: trevortao --- src/arm/README.rst | 85 ++++++++++++++++++++++++ src/arm/kubernetes_basic/examples/nginx-app.sh | 42 ++++++++++++ src/arm/kubernetes_basic/examples/nginx-app.yaml | 31 +++++++++ src/arm/kubernetes_basic/k8s-build.sh | 31 +++++++++ src/arm/kubernetes_basic/k8s-deploy.sh | 34 ++++++++++ src/arm/kubernetes_basic/setup.sh | 7 ++ 6 files changed, 230 insertions(+) create mode 100644 src/arm/README.rst create mode 100755 src/arm/kubernetes_basic/examples/nginx-app.sh create mode 100644 src/arm/kubernetes_basic/examples/nginx-app.yaml create mode 100755 src/arm/kubernetes_basic/k8s-build.sh create mode 100755 src/arm/kubernetes_basic/k8s-deploy.sh create mode 100755 src/arm/kubernetes_basic/setup.sh diff --git a/src/arm/README.rst b/src/arm/README.rst new file mode 100644 index 0000000..5e3325b --- /dev/null +++ b/src/arm/README.rst @@ -0,0 +1,85 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International +.. License. +.. http://creativecommons.org/licenses/by/4.0 +.. (c) OPNFV, arm Limited. + +.. _Compass4nfv: https://wiki.opnfv.org/display/compass4nfv/Compass4nfv +.. _repo: https://gerrit.opnfv.org/gerrit/#/admin/projects/compass4nfv +.. _Flannel: https://github.com/coreos/flannel + +=============================================== +Kubernetes Deployment on arm Installation Guide +=============================================== + +Kubernetes deployement on arm64 server is now supported. This document give the basic installation +guide for common things between different scenarios. The user can refer the installation script in +each scenario for details. +Kubernetes deployment scenarios on arm is based on Compass4nfv_. Arm has given patches to enable +some certain scenarios to the Compass4nfv repo_. +Typically it would deploy 2 VMs(hosts) in which one(host1) is deployed as Kubernetes Master +and node, the other(host2) as Kubernetes node. +The basic Kubernetes cluster would use Flannel_ as the container networking scheme. + + +Installation Enviroment Preparation +=================================== + +.. _architecture: + https://github.com/opnfv/compass4nfv/blob/master/docs/release/installation/k8s-deploy.rst + +The installed Kubernetes cluster architecture could refer the deployment architecture_ of +Compass4nfv. + +Jumphost: Ubuntu16.04(xenial) aarch64 + +* *1* Enable password-less sudo for current user +* *2* Disable DHCP of libvirt default network + +:: + Libvirt creates a default network at intallation, which enables DHCP and occupies port 67. + It conflicts with compass-cobbler container. + $ sudo virsh net-edit default +