Restructuring the repo. 77/79877/17
authorAkhila Kishore <akhila.kishore@intel.com>
Wed, 6 Mar 2019 14:34:09 +0000 (06:34 -0800)
committerAkhila Kishore <akhila.kishore@intel.com>
Fri, 22 Mar 2019 14:28:00 +0000 (07:28 -0700)
The idea is to restructure the existing repo create a deployment
independent of Vagrant or other hosting providers.
Renamed KRD to KUbernetes Deploy(Kud) including the ansible scripts
Added new path to functional tests.
Moved samples pdfs to sites.
Minor changes to Readme.
Updated aio.sh, moved sample config
Corrected other nits. Updated and verified test cases.
Addressed comments and changes associated with it.
Updated Readme and minor change in Vagrantfile.
Validated test cases again. Moved aio.sh into vagrant folder.
Added new README for each hosting provider and project on the whole.
Updated the installer script with relative path.
Updated the name to deployment_infra, moved the cFW sripcts to tests.
Updated the gitignore file.

Issue-ID: MULTICLOUD-301
Change-Id: Ie48c26b12ab58b604493fba58a9c5b9f8ba10942
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
132 files changed:
.gitignore
kud/README.md [moved from vagrant/README.md with 51% similarity]
kud/deployment_infra/galaxy-requirements.yml [moved from vagrant/galaxy-requirements.yml with 100% similarity]
kud/deployment_infra/playbooks/Debian.yml [moved from vagrant/playbooks/Debian.yml with 100% similarity]
kud/deployment_infra/playbooks/RedHat.yml [moved from vagrant/playbooks/RedHat.yml with 100% similarity]
kud/deployment_infra/playbooks/Suse.yml [moved from vagrant/playbooks/Suse.yml with 100% similarity]
kud/deployment_infra/playbooks/configure-istio.yml [moved from vagrant/playbooks/configure-istio.yml with 97% similarity]
kud/deployment_infra/playbooks/configure-kud.yml [moved from vagrant/playbooks/configure-krd.yml with 90% similarity]
kud/deployment_infra/playbooks/configure-multus.yml [moved from vagrant/playbooks/configure-multus.yml with 96% similarity]
kud/deployment_infra/playbooks/configure-nfd.yml [moved from vagrant/playbooks/configure-nfd.yml with 94% similarity]
kud/deployment_infra/playbooks/configure-ovn-kubernetes.yml [moved from vagrant/playbooks/configure-ovn-kubernetes.yml with 97% similarity]
kud/deployment_infra/playbooks/configure-ovn.yml [moved from vagrant/playbooks/configure-ovn.yml with 100% similarity]
kud/deployment_infra/playbooks/configure-ovn4nfv.yml [moved from vagrant/playbooks/configure-ovn4nfv.yml with 96% similarity]
kud/deployment_infra/playbooks/configure-virtlet.yml [moved from vagrant/playbooks/configure-virtlet.yml with 98% similarity]
kud/deployment_infra/playbooks/kud-vars.yml [moved from vagrant/playbooks/krd-vars.yml with 100% similarity]
kud/hosting_providers/baremetal/README.md [new file with mode: 0644]
kud/hosting_providers/vagrant/README.md [new file with mode: 0644]
kud/hosting_providers/vagrant/Vagrantfile [moved from vagrant/Vagrantfile with 95% similarity]
kud/hosting_providers/vagrant/aio.sh [moved from vagrant/aio.sh with 84% similarity]
kud/hosting_providers/vagrant/config/default.yml [moved from vagrant/config/default.yml with 100% similarity]
kud/hosting_providers/vagrant/config/samples/pdf.yml.aio [moved from vagrant/config/samples/pdf.yml.aio with 100% similarity]
kud/hosting_providers/vagrant/config/samples/pdf.yml.mini [moved from vagrant/config/samples/pdf.yml.mini with 100% similarity]
kud/hosting_providers/vagrant/insecure_keys/key [moved from vagrant/insecure_keys/key with 100% similarity]
kud/hosting_providers/vagrant/insecure_keys/key.pub [moved from vagrant/insecure_keys/key.pub with 100% similarity]
kud/hosting_providers/vagrant/installer [moved from vagrant/installer with 100% similarity]
kud/hosting_providers/vagrant/installer.sh [moved from vagrant/installer.sh with 80% similarity]
kud/hosting_providers/vagrant/inventory/group_vars/k8s-cluster.yml [moved from vagrant/inventory/group_vars/k8s-cluster.yml with 100% similarity]
kud/hosting_providers/vagrant/node.sh [moved from vagrant/node.sh with 100% similarity]
kud/hosting_providers/vagrant/setup.sh [moved from vagrant/setup.sh with 100% similarity]
kud/tests/_common.sh [moved from vagrant/tests/_common.sh with 100% similarity]
kud/tests/_functions.sh [moved from vagrant/tests/_functions.sh with 97% similarity]
kud/tests/cFW/README.md [moved from vagrant/tests/cFW/README.md with 100% similarity]
kud/tests/cFW/Vagrantfile [moved from vagrant/tests/cFW/Vagrantfile with 100% similarity]
kud/tests/cFW/darkstat/Dockerfile [moved from vagrant/tests/cFW/darkstat/Dockerfile with 100% similarity]
kud/tests/cFW/docker-compose.yml [moved from vagrant/tests/cFW/docker-compose.yml with 100% similarity]
kud/tests/cFW/firewall/Dockerfile [moved from vagrant/tests/cFW/firewall/Dockerfile with 100% similarity]
kud/tests/cFW/packetgen/Dockerfile [moved from vagrant/tests/cFW/packetgen/Dockerfile with 100% similarity]
kud/tests/cFW/postinstall.sh [moved from vagrant/tests/cFW/postinstall.sh with 100% similarity]
kud/tests/cFW/sink/Dockerfile [moved from vagrant/tests/cFW/sink/Dockerfile with 100% similarity]
kud/tests/cFW/vpp/80-vpp.conf [moved from vagrant/tests/cFW/vpp/80-vpp.conf with 100% similarity]
kud/tests/cFW/vpp/Dockerfile [moved from vagrant/tests/cFW/vpp/Dockerfile with 100% similarity]
kud/tests/generic_simulator/Dockerfile [moved from vagrant/tests/generic_simulator/Dockerfile with 100% similarity]
kud/tests/generic_simulator/aai/responses.yml [moved from vagrant/tests/generic_simulator/aai/responses.yml with 100% similarity]
kud/tests/generic_simulator/generic_sim.py [moved from vagrant/tests/generic_simulator/generic_sim.py with 100% similarity]
kud/tests/generic_simulator/requirements.txt [moved from vagrant/tests/generic_simulator/requirements.txt with 100% similarity]
kud/tests/integration_cFW.sh [moved from vagrant/tests/integration_cFW.sh with 100% similarity]
kud/tests/integration_vFW.sh [moved from vagrant/tests/integration_vFW.sh with 100% similarity]
kud/tests/integration_vcFW.sh [moved from vagrant/tests/integration_vcFW.sh with 100% similarity]
kud/tests/istio.sh [moved from vagrant/tests/istio.sh with 78% similarity]
kud/tests/multus.sh [moved from vagrant/tests/multus.sh with 100% similarity]
kud/tests/nfd.sh [moved from vagrant/tests/nfd.sh with 100% similarity]
kud/tests/ovn-kubernetes.sh [moved from vagrant/tests/ovn-kubernetes.sh with 100% similarity]
kud/tests/ovn4nfv.sh [moved from vagrant/tests/ovn4nfv.sh with 100% similarity]
kud/tests/plugin.sh [moved from vagrant/tests/plugin.sh with 99% similarity]
kud/tests/plugin_edgex.sh [moved from vagrant/tests/plugin_edgex.sh with 98% similarity]
kud/tests/vFW/README.md [moved from vagrant/tests/vFW/README.md with 100% similarity]
kud/tests/vFW/Vagrantfile [moved from vagrant/tests/vFW/Vagrantfile with 100% similarity]
kud/tests/vFW/diagram.png [moved from vagrant/tests/vFW/diagram.png with 100% similarity]
kud/tests/vFW/firewall [moved from vagrant/tests/vFW/firewall with 100% similarity]
kud/tests/vFW/packetgen [moved from vagrant/tests/vFW/packetgen with 100% similarity]
kud/tests/vFW/sink [moved from vagrant/tests/vFW/sink with 100% similarity]
kud/tests/virtlet.sh [moved from vagrant/tests/virtlet.sh with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/Chart.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/Chart.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/consul/Chart.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/Chart.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/consul/values.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/values.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/mongo/Chart.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/mongo/Chart.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/mongo/templates/mongo-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/mongo/templates/mongo-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/mongo/templates/mongo-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/mongo/templates/mongo-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/charts/mongo/values.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/charts/mongo/values.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/command-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/command-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/command-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/command-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/data-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/data-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/device-bluetooth-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/device-bluetooth-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/device-bluetooth-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/device-bluetooth-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/export-client-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/export-client-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/export-client-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/export-client-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/export-distro-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/export-distro-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/export-distro-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/export-distro-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/logging-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/logging-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/logging-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/logging-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/metadata-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/metadata-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/metadata-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/metadata-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/notifications-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/notifications-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/notifications-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/notifications-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/pv.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/pv.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/pvc.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/pvc.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/rulesengine-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/rulesengine-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/rulesengine-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/rulesengine-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/scheduler-deployment.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/scheduler-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/templates/scheduler-service.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/templates/scheduler-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/helm/edgex/values.yaml [moved from vagrant/tests/vnfs/edgex/helm/edgex/values.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/command-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/command-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/consul-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/consul-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/data-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/data-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/device-bluetooth-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/device-bluetooth-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/export-client-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/export-client-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/export-distro-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/export-distro-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/logging-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/logging-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/metadata-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/metadata-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/mongo-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/mongo-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/notifications-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/notifications-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/rulesengine-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/rulesengine-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/deployments/scheduler-deployment.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/deployments/scheduler-deployment.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/metadata.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/metadata.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/command-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/command-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/consul-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/consul-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/data-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/data-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/device-bluetooth-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/device-bluetooth-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/export-client-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/export-client-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/export-distro-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/export-distro-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/logging-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/logging-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/metadata-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/metadata-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/mongo-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/mongo-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/notifications-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/notifications-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/rulesengine-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/rulesengine-service.yaml with 100% similarity]
kud/tests/vnfs/edgex/kubernetes/services/scheduler-service.yaml [moved from vagrant/tests/vnfs/edgex/kubernetes/services/scheduler-service.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/profile/manifest.yaml [moved from vagrant/tests/vnfs/testrb/helm/profile/manifest.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/profile/override_values.yaml [moved from vagrant/tests/vnfs/testrb/helm/profile/override_values.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/profile/testfol/subdir/deployment.yaml [moved from vagrant/tests/vnfs/testrb/helm/profile/testfol/subdir/deployment.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/Chart.yaml [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/Chart.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/Chart.yaml [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/Chart.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_name.tpl [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_name.tpl with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_namespace.tpl [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_namespace.tpl with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_repository.tpl [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_repository.tpl with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_service.tpl [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/templates/_service.tpl with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/values.yaml [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/charts/common/values.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/templates/deployment.yaml [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/templates/deployment.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/templates/service.yaml [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/templates/service.yaml with 100% similarity]
kud/tests/vnfs/testrb/helm/vault-consul-dev/values.yaml [moved from vagrant/tests/vnfs/testrb/helm/vault-consul-dev/values.yaml with 100% similarity]

index 1e570c1..1b74ba0 100644 (file)
@@ -30,10 +30,10 @@ src/k8splugin/plugins/**/*.so
 
 # KRD
 .vagrant/
-vagrant/inventory/hosts.ini
-vagrant/inventory/artifacts
-vagrant/inventory/group_vars/all.yml
-vagrant/config/pdf.yml
-vagrant/sources.list
+kud/hosting_providers/vagrant/inventory/hosts.ini
+kud/hosting_providers/vagrant/inventory/artifacts
+kud/hosting_providers/vagrant/inventory/group_vars/all.yml
+kud/hosting_providers/vagrant/config/pdf.yml
+kud/hosting_providers/vagrant/sources.list
 *.retry
 *.vdi
similarity index 51%
rename from vagrant/README.md
rename to kud/README.md
index c433a60..2064042 100644 (file)
@@ -1,54 +1,37 @@
-# Kubernetes Reference Deployment
+# Kubernetes Deployment
 
 ## Summary
 
-This project offers a reference for deploying a Kubernetes cluster
+This project offers a means for deploying a Kubernetes cluster
 that satisfies the requirements of [ONAP multicloud/k8s plugin][1]. Its
-ansible playbooks allow to provision a deployment on Bare-metal or
-Virtual Machines.
+ansible playbooks allow to provision a deployment on Virtual Machines and on Baremetal.
 
-![Diagram](../doc/img/diagram.png)
+![Diagram](../../../docs/img/diagram.png)
 
 # Components
 
 | Name           | Description                                   | Source                            | Status |
 |:--------------:|:----------------------------------------------|:----------------------------------|:------:|
 | Kubernetes     | Base Kubernetes deployment                    | [kubespray][2]                    | Done   |
-| ovn-kubernetes | Integrates Opensource Virtual Networking      | [configure-ovn-kubernetes.yml][3] | Tested |
+| ovn4nfv        | Integrates Opensource Virtual Networking      | [configure-ovn4nfv.yml][3]        | Tested |
 | Virtlet        | Allows to run VMs                             | [configure-virtlet.yml][4]        | Tested |
 | Multus         | Provides Multiple Network support in a pod    | [configure-multus.yml][5]         | Tested |
-| NFD            | Node feature discovery                        | [configure-nfd.yml][7]            | Tested |
-| Istio          | Service Mesh platform                         | [configure-istio.yml][8]          | Tested |
+| NFD            | Node feature discovery                        | [configure-nfd.yml][6]            | Tested |
+| Istio          | Service Mesh platform                         | [configure-istio.yml][7]          | Tested |
 
 ## Deployment
 
 The [installer](installer.sh) bash script contains the minimal
 Ubuntu instructions required for running this project.
 
-### Virtual Machines
-
-This project uses [Vagrant tool][6] for provisioning Virtual Machines
-automatically. The [setup](setup.sh) bash script contains the
-Linux instructions to install dependencies and plugins required for
-its usage. This script supports two Virtualization technologies
-(Libvirt and VirtualBox).
-
-    $ ./setup.sh -p libvirt
-
-Once Vagrant is installed, it's possible to provision a cluster using
-the following instructions:
-
-    $ vagrant up && vagrant up installer
-
 ## License
 
 Apache-2.0
 
 [1]: https://git.onap.org/multicloud/k8s
 [2]: https://github.com/kubernetes-incubator/kubespray
-[3]: playbooks/configure-ovn-kubernetes.yml
+[3]: playbooks/configure-ovn4nfv.yml
 [4]: playbooks/configure-virtlet.yml
 [5]: playbooks/configure-multus.yml
-[6]: https://www.vagrantup.com/
-[7]: playbooks/configure-nfd.yml
-[8]: playbooks/configure-istio.yml
+[6]: playbooks/configure-nfd.yml
+[7]: playbooks/configure-istio.yml
similarity index 97%
rename from vagrant/playbooks/configure-istio.yml
rename to kud/deployment_infra/playbooks/configure-istio.yml
index 2bd4e85..72542e5 100644 (file)
@@ -10,9 +10,9 @@
 
 - hosts: localhost
   pre_tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
   roles:
     - role: andrewrothstein.kubectl
       kubectl_ver: "v{{ kubectl_version }}"
similarity index 90%
rename from vagrant/playbooks/configure-krd.yml
rename to kud/deployment_infra/playbooks/configure-kud.yml
index 22e6419..9dcf6f3 100644 (file)
@@ -12,5 +12,5 @@
   tasks:
     - name: copy admin.conf file to kube-nodes
       copy:
-        src: "{{ lookup('env','krd_inventory_folder') }}/artifacts/admin.conf"
+        src: "{{ lookup('env','kud_inventory_folder') }}/artifacts/admin.conf"
         dest: "/etc/kubernetes/admin.conf"
similarity index 96%
rename from vagrant/playbooks/configure-multus.yml
rename to kud/deployment_infra/playbooks/configure-multus.yml
index 23fe546..1f6d6ce 100644 (file)
@@ -10,9 +10,9 @@
 - hosts: kube-node
   become: yes
   pre_tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
   roles:
     - role: andrewrothstein.go
       go_ver: "{{ go_version }}"
@@ -81,9 +81,9 @@
 
 - hosts: localhost
   pre_tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
   roles:
     - role: andrewrothstein.kubectl
       kubectl_ver: "v{{ kubectl_version }}"
similarity index 94%
rename from vagrant/playbooks/configure-nfd.yml
rename to kud/deployment_infra/playbooks/configure-nfd.yml
index d47a7bc..a091d04 100644 (file)
@@ -10,9 +10,9 @@
 
 - hosts: kube-node
   tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
     - name: clone NFD repo
       git:
         repo: "{{ nfd_url }}"
@@ -47,9 +47,9 @@
 
 - hosts: localhost
   pre_tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
   roles:
     - role: andrewrothstein.kubectl
       kubectl_ver: "v{{ kubectl_version }}"
   environment:
     PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin/"
   pre_tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
   roles:
     - role: andrewrothstein.go
       go_ver: "{{ go_version }}"
   tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
     - name: clone ovn-kubernetes repo
       git:
         repo: "{{ ovn_kubernetes_url }}"
@@ -16,9 +16,9 @@
   roles:
     - role: andrewrothstein.go
   tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
     - name: clone ovn4nfv-k8s-plugin repo
       git:
         repo: "{{ ovn4nfv_url }}"
@@ -66,9 +66,9 @@
     PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin/"
   become: yes
   tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
     - name: build ovn4nfvk8s
       make:
         chdir: "{{ ovn4nfv_dest }}"
@@ -11,9 +11,9 @@
   vars:
     images_file: /tmp/images.yaml
   pre_tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
   roles:
     - role: andrewrothstein.kubectl
       kubectl_ver: "v{{ kubectl_version }}"
 
 - hosts: virtlet
   tasks:
-    - name: Load krd variables
+    - name: Load kud variables
       include_vars:
-        file: krd-vars.yml
+        file: kud-vars.yml
     - name: create CRIProxy binary folder
       file:
         state: directory
diff --git a/kud/hosting_providers/baremetal/README.md b/kud/hosting_providers/baremetal/README.md
new file mode 100644 (file)
index 0000000..4f81d7b
--- /dev/null
@@ -0,0 +1,22 @@
+# Kubernetes Deployment
+
+## Summary
+
+This project offers a means for deploying a Kubernetes cluster
+that satisfies the requirements of [ONAP multicloud/k8s plugin][1]. Its
+ansible playbooks allow to provision a deployment on Baremetal. 
+
+
+![Diagram](../../../docs/img/installer_workflow.png)
+
+
+## Deployment
+
+The [installer](installer.sh) bash script contains the minimal
+Ubuntu instructions required for running this project.
+
+## License
+
+Apache-2.0
+
+[1]: https://git.onap.org/multicloud/k8s
diff --git a/kud/hosting_providers/vagrant/README.md b/kud/hosting_providers/vagrant/README.md
new file mode 100644 (file)
index 0000000..00f0a70
--- /dev/null
@@ -0,0 +1,36 @@
+# Kubernetes Deployment
+
+## Summary
+
+This project offers a means for deploying a Kubernetes cluster
+that satisfies the requirements of [ONAP multicloud/k8s plugin][1]. Its
+ansible playbooks allow to provision a deployment on Virtual Machines.
+
+![Diagram](../../../docs/img/diagram.png)
+
+## Deployment
+
+The [installer](installer.sh) bash script contains the minimal
+Ubuntu instructions required for running this project.
+
+### Virtual Machines
+
+This project uses [Vagrant tool][2] for provisioning Virtual Machines
+automatically. The [setup](setup.sh) bash script contains the
+Linux instructions to install dependencies and plugins required for
+its usage. This script supports two Virtualization technologies
+(Libvirt and VirtualBox).
+
+    $ ./setup.sh -p libvirt
+
+Once Vagrant is installed, it's possible to provision a cluster using
+the following instructions:
+
+    $ vagrant up && vagrant up installer
+
+## License
+
+Apache-2.0
+
+[1]: https://git.onap.org/multicloud/k8s
+[2]: https://www.vagrantup.com/
similarity index 95%
rename from vagrant/Vagrantfile
rename to kud/hosting_providers/vagrant/Vagrantfile
index 3314fe9..105c7e9 100644 (file)
@@ -115,15 +115,15 @@ Vagrant.configure("2") do |config|
   config.vm.define :installer, primary: true, autostart: false do |installer|
     installer.vm.hostname = "multicloud"
     installer.vm.network :private_network, :ip => "10.10.10.2", :type => :static
-    installer.vm.synced_folder '../', '/home/vagrant/multicloud-k8s/', type: sync_type
+    installer.vm.synced_folder '../../../', '/home/vagrant/multicloud-k8s/', type: sync_type
     installer.vm.provision 'shell', privileged: false do |sh|
-      sh.env = {'KRD_PLUGIN_ENABLED': 'true'}
+      sh.env = {'KUD_PLUGIN_ENABLED': 'true'}
       sh.inline = <<-SHELL
         cp /vagrant/insecure_keys/key.pub /home/vagrant/.ssh/id_rsa.pub
         cp /vagrant/insecure_keys/key /home/vagrant/.ssh/id_rsa
         chown vagrant /home/vagrant/.ssh/id_rsa
         chmod 400 /home/vagrant/.ssh/id_rsa
-        cd /home/vagrant/multicloud-k8s/vagrant/ && ./installer.sh | tee krd_installer.log
+        cd /home/vagrant/multicloud-k8s/kud/hosting_providers/vagrant/ && ./installer.sh | tee kud_installer.log
       SHELL
     end
   end
similarity index 84%
rename from vagrant/aio.sh
rename to kud/hosting_providers/vagrant/aio.sh
index 413e467..31663af 100755 (executable)
@@ -17,9 +17,9 @@ if [[ $(whoami) != 'root' ]];then
     exit 1
 fi
 
-echo "Cloning and configuring KRD project..."
+echo "Cloning and configuring KUD project..."
 git clone https://git.onap.org/multicloud/k8s/
-cd k8s/vagrant/
+cd k8s/kud/hosting_providers/baremetal/
 cat <<EOL > inventory/hosts.ini
 [all]
 localhost
@@ -46,7 +46,7 @@ localhost
 kube-node
 kube-master
 EOL
-sed -i '/andrewrothstein.kubectl/d' playbooks/configure-*.yml
+sed -i '/andrewrothstein.kubectl/d' ../../deployment_infra/playbooks/configure-*.yml
 echo -e "\n\n\n" | ssh-keygen -t rsa -N ""
 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
 chmod og-wx ~/.ssh/authorized_keys
@@ -55,4 +55,4 @@ echo "Enabling nested-virtualization"
 ./node.sh
 
 echo "Deploying KRD project"
-./installer.sh | tee krd_installer.log
+./installer.sh | tee kud_installer.log
similarity index 80%
rename from vagrant/installer.sh
rename to kud/hosting_providers/vagrant/installer.sh
index 6f0c305..3f3595b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# SPDX-license-identifier: Apache-2.0
+#SPDX-license-identifier: Apache-2.0
 ##############################################################################
 # Copyright (c) 2018
 # All rights reserved. This program and the accompanying materials
@@ -13,7 +13,7 @@ set -o pipefail
 
 # _install_go() - Install GoLang package
 function _install_go {
-    version=$(grep "go_version" ${krd_playbooks}/krd-vars.yml | awk -F "'" '{print $2}')
+    version=$(grep "go_version" ${kud_playbooks}/kud-vars.yml | awk -F "'" '{print $2}')
     local tarball=go$version.linux-amd64.tar.gz
 
     if $(go version &>/dev/null); then
@@ -86,7 +86,7 @@ function _install_docker {
 }
 
 function _set_environment_file {
-    ansible_ifconfig=$(ansible ovn-central[0] -i $krd_inventory -m shell -a "ifconfig eth1 |grep \"inet addr\" |awk '{print \$2}' |awk -F: '{print \$2}'")
+    ansible_ifconfig=$(ansible ovn-central[0] -i $kud_inventory -m shell -a "ifconfig eth1 |grep \"inet addr\" |awk '{print \$2}' |awk -F: '{print \$2}'")
     if [[ $ansible_ifconfig != *CHANGED* ]]; then
         echo "Fail to get the OVN central IP address from eth1 nic"
         exit
@@ -99,10 +99,9 @@ function _set_environment_file {
 function install_k8s {
     echo "Deploying kubernetes"
     local dest_folder=/opt
-    version=$(grep "kubespray_version" ${krd_playbooks}/krd-vars.yml | awk -F ': ' '{print $2}')
-    local_release_dir=$(grep "local_release_dir" $krd_inventory_folder/group_vars/k8s-cluster.yml | awk -F "\"" '{print $2}')
+    version=$(grep "kubespray_version" ${kud_playbooks}/kud-vars.yml | awk -F ': ' '{print $2}')
+    local_release_dir=$(grep "local_release_dir" $kud_inventory_folder/group_vars/k8s-cluster.yml | awk -F "\"" '{print $2}')
     local tarball=v$version.tar.gz
-
     sudo apt-get install -y sshpass
     _install_docker
     _install_ansible
@@ -114,38 +113,38 @@ function install_k8s {
     rm $tarball
 
     sudo -E pip install -r $dest_folder/kubespray-$version/requirements.txt
-    rm -f $krd_inventory_folder/group_vars/all.yml 2> /dev/null
+    rm -f $kud_inventory_folder/group_vars/all.yml 2> /dev/null
     if [[ -n "${verbose}" ]]; then
-        echo "kube_log_level: 5" | tee $krd_inventory_folder/group_vars/all.yml
+        echo "kube_log_level: 5" | tee $kud_inventory_folder/group_vars/all.yml
     else
-        echo "kube_log_level: 2" | tee $krd_inventory_folder/group_vars/all.yml
+        echo "kube_log_level: 2" | tee $kud_inventory_folder/group_vars/all.yml
     fi
-    echo "kubeadm_enabled: true" | tee --append $krd_inventory_folder/group_vars/all.yml
+    echo "kubeadm_enabled: true" | tee --append $kud_inventory_folder/group_vars/all.yml
     if [[ -n "${http_proxy}" ]]; then
-        echo "http_proxy: \"$http_proxy\"" | tee --append $krd_inventory_folder/group_vars/all.yml
+        echo "http_proxy: \"$http_proxy\"" | tee --append $kud_inventory_folder/group_vars/all.yml
     fi
     if [[ -n "${https_proxy}" ]]; then
-        echo "https_proxy: \"$https_proxy\"" | tee --append $krd_inventory_folder/group_vars/all.yml
+        echo "https_proxy: \"$https_proxy\"" | tee --append $kud_inventory_folder/group_vars/all.yml
     fi
-    ansible-playbook $verbose -i $krd_inventory $dest_folder/kubespray-$version/cluster.yml --become --become-user=root | sudo tee $log_folder/setup-kubernetes.log
+    ansible-playbook $verbose -i $kud_inventory $dest_folder/kubespray-$version/cluster.yml --become --become-user=root | sudo tee $log_folder/setup-kubernetes.log
 
     # Configure environment
     mkdir -p $HOME/.kube
-    cp $krd_inventory_folder/artifacts/admin.conf $HOME/.kube/config
+    cp $kud_inventory_folder/artifacts/admin.conf $HOME/.kube/config
 }
 
 # install_addons() - Install Kubenertes AddOns
 function install_addons {
     echo "Installing Kubernetes AddOns"
     _install_ansible
-    sudo ansible-galaxy install $verbose -r $krd_folder/galaxy-requirements.yml --ignore-errors
+    sudo ansible-galaxy install $verbose -r $kud_infra_folder/galaxy-requirements.yml --ignore-errors
 
-    ansible-playbook $verbose -i $krd_inventory $krd_playbooks/configure-krd.yml | sudo tee $log_folder/setup-krd.log
+    ansible-playbook $verbose -i $kud_inventory $kud_playbooks/configure-kud.yml | sudo tee $log_folder/setup-kud.log
     for addon in ${KRD_ADDONS:-virtlet ovn4nfv}; do
         echo "Deploying $addon using configure-$addon.yml playbook.."
-        ansible-playbook $verbose -i $krd_inventory $krd_playbooks/configure-${addon}.yml | sudo tee $log_folder/setup-${addon}.log
+        ansible-playbook $verbose -i $kud_inventory $kud_playbooks/configure-${addon}.yml | sudo tee $log_folder/setup-${addon}.log
         if [[ "${testing_enabled}" == "true" ]]; then
-            pushd $krd_tests
+            pushd $kud_tests
             bash ${addon}.sh
             popd
         fi
@@ -160,15 +159,15 @@ function install_plugin {
     sudo -E pip install docker-compose
 
     sudo mkdir -p /opt/{kubeconfig,consul/config}
-    sudo cp $HOME/.kube/config /opt/kubeconfig/krd
+    sudo cp $HOME/.kube/config /opt/kubeconfig/kud
     _set_environment_file
     source /etc/environment
 
-    pushd $krd_folder/../deployments
+    pushd $kud_folder/../../../deployments
     sudo ./build.sh
     if [[ "${testing_enabled}" == "true" ]]; then
         docker-compose up -d
-        pushd $krd_tests
+        pushd $kud_tests
         for functional_test in plugin plugin_edgex; do
             bash ${functional_test}.sh
         done
@@ -205,20 +204,21 @@ if ! sudo -n "true"; then
     exit 1
 fi
 
-if [[ -n "${KRD_DEBUG}" ]]; then
+if [[ -n "${KUD_DEBUG}" ]]; then
     set -o xtrace
     verbose="-vvv"
 fi
 
 # Configuration values
-log_folder=/var/log/krd
-krd_folder=$(pwd)
-export krd_inventory_folder=$krd_folder/inventory
-krd_inventory=$krd_inventory_folder/hosts.ini
-krd_playbooks=$krd_folder/playbooks
-krd_tests=$krd_folder/tests
-k8s_info_file=$krd_folder/k8s_info.log
-testing_enabled=${KRD_ENABLE_TESTS:-false}
+log_folder=/var/log/kud
+kud_folder=$(pwd)
+kud_infra_folder=$kud_folder/../../deployment_infra
+export kud_inventory_folder=$kud_folder/inventory
+kud_inventory=$kud_inventory_folder/hosts.ini
+kud_playbooks=$kud_infra_folder/playbooks
+kud_tests=$kud_folder/tests
+k8s_info_file=$kud_folder/k8s_info.log
+testing_enabled=${KUD_ENABLE_TESTS:-false}
 
 sudo mkdir -p $log_folder
 sudo mkdir -p /opt/csar
@@ -227,14 +227,14 @@ echo "export CSAR_DIR=/opt/csar" | sudo tee --append /etc/environment
 
 # Install dependencies
 # Setup proxy variables
-if [ -f $krd_folder/sources.list ]; then
+if [ -f $kud_folder/sources.list ]; then
     sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
-    sudo cp $krd_folder/sources.list /etc/apt/sources.list
+    sudo cp $kud_folder/sources.list /etc/apt/sources.list
 fi
 sudo apt-get update
 install_k8s
 install_addons
-if [[ "${KRD_PLUGIN_ENABLED:-false}" ]]; then
+if [[ "${KUD_PLUGIN_ENABLED:-false}" ]]; then
     install_plugin
 fi
 _print_kubernetes_info
similarity index 97%
rename from vagrant/tests/_functions.sh
rename to kud/tests/_functions.sh
index 62feb7b..c25d1f2 100755 (executable)
@@ -21,7 +21,7 @@ function print_msg {
 }
 
 function _get_ovn_central_address {
-    ansible_ifconfig=$(ansible ovn-central[0] -i $test_folder/../inventory/hosts.ini -m shell -a "ifconfig eth1 |grep \"inet addr\" |awk '{print \$2}' |awk -F: '{print \$2}'")
+    ansible_ifconfig=$(ansible ovn-central[0] -i $test_folder/../hosting_providers/vagrant/inventory/hosts.ini -m shell -a "ifconfig eth1 |grep \"inet addr\" |awk '{print \$2}' |awk -F: '{print \$2}'")
     if [[ $ansible_ifconfig != *CHANGED* ]]; then
         echo "Fail to get the OVN central IP address from eth1 nic"
         exit
similarity index 78%
rename from vagrant/tests/istio.sh
rename to kud/tests/istio.sh
index 79ef4ac..c525bb8 100755 (executable)
@@ -16,9 +16,9 @@ source _functions.sh
 
 csar_id=ac39959e-e82c-11e8-9133-525400912638
 
-base_dest=$(grep "base_dest:" $test_folder/../playbooks/krd-vars.yml | awk -F ': ' '{print $2}')
-istio_dest=$(grep "istio_dest:" $test_folder/../playbooks/krd-vars.yml | awk -F ': ' '{print $2}' | sed "s|{{ base_dest }}|$base_dest|g;s|\"||g")
-istio_version=$(grep "istio_version:" $test_folder/../playbooks/krd-vars.yml | awk -F ': ' '{print $2}')
+base_dest=$(grep "base_dest:" $test_folder/../deployment_infra/playbooks/kud-vars.yml | awk -F ': ' '{print $2}')
+istio_dest=$(grep "istio_dest:" $test_folder/../deployment_infra/playbooks/kud-vars.yml | awk -F ': ' '{print $2}' | sed "s|{{ base_dest }}|$base_dest|g;s|\"||g")
+istio_version=$(grep "istio_version:" $test_folder/../deployment_infra/playbooks/kud-vars.yml | awk -F ': ' '{print $2}')
 
 if ! $(istioctl version &>/dev/null); then
     echo "This funtional test requires istioctl client"
similarity index 100%
rename from vagrant/tests/multus.sh
rename to kud/tests/multus.sh
similarity index 100%
rename from vagrant/tests/nfd.sh
rename to kud/tests/nfd.sh
similarity index 99%
rename from vagrant/tests/plugin.sh
rename to kud/tests/plugin.sh
index b36e75f..6cf93ce 100755 (executable)
@@ -17,7 +17,7 @@ source _common.sh
 source _functions.sh
 
 base_url="http://localhost:8081"
-cloud_region_id="krd"
+cloud_region_id="kud"
 namespace="default"
 csar_id="94e414f6-9ca4-11e8-bb6a-52540067263b"
 rbd_csar_id="7eb09e38-4363-9942-1234-3beb2e95fd85"
similarity index 98%
rename from vagrant/tests/plugin_edgex.sh
rename to kud/tests/plugin_edgex.sh
index 575040b..3165efb 100755 (executable)
@@ -16,7 +16,7 @@ set -o pipefail
 source _functions.sh
 
 base_url="http://localhost:8081/v1/vnf_instances/"
-cloud_region_id="krd"
+cloud_region_id="kud"
 namespace="default"
 csar_id=cb009bfe-bbee-11e8-9766-525400435678
 
similarity index 100%
rename from vagrant/tests/vFW/sink
rename to kud/tests/vFW/sink