From 722d766157dbf827492f7eb09b7f61fdd43e7e37 Mon Sep 17 00:00:00 2001 From: calvinosanc1 Date: Wed, 1 Jul 2020 17:54:06 +0200 Subject: [PATCH] K8s-02 and K8s-03 test procedures added --- 02-osm-nfvi-test-plan.md | 70 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/02-osm-nfvi-test-plan.md b/02-osm-nfvi-test-plan.md index c9fbfa9..91f193b 100644 --- a/02-osm-nfvi-test-plan.md +++ b/02-osm-nfvi-test-plan.md @@ -1181,11 +1181,77 @@ TODO: Under ellaboration. Deployment of a new Kubernetes cluster from OSM using ### \[K8s-02\] Register and de-register Kubernetes clusters in OSM -TODO: Under ellaboration. Register and de-register pre-existing K8s clusters in OSM. +1. Register the Kubernetes cluster in OSM + + ```bash + osm k8scluster-add --creds --version v1 --vim --k8s-nets '{"net1": }' --description "K8s cluster" osm-k8s-cluster + ``` + +2. Check that the Kubernetes cluster is successully added + + ```bash + # Get all k8sclusters. The Operational State of the cluster should be "ENABLED" + osm k8scluster-list + ``` + +3. De-register the Kubernetes cluster + + ```bash + osm k8scluster-delete osm-k8s-cluster + ``` + +4. Review that the cluster has been deleted + + ```bash + # Get all k8sclusters. Our cluster should not appear. + osm k8scluster-list + ``` ### \[K8s-03\] Deployment of CNF from OSM -TODO: Under ellaboration. Deploy a CNF over a K8s cluster known by OSM. +1. Register the Kubernetes cluster in OSM + + ```bash + osm k8scluster-add --creds --version v1 --vim --k8s-nets '{"net1": }' --description "K8s cluster" osm-k8s-cluster + ``` + +2. Check that the Kubernetes cluster is successully added + + ```bash + # Get all k8sclusters. The Operational State of the cluster should be "ENABLED" + osm k8scluster-list + ``` +3. Onboard the packages + + ```bash + osm nfpkg-create hackfest_simple_k8s_vnfd.tar.gz + osm nspkg-create hackfest_simple_k8s_nsd.tar.gz + ``` + +4. Instantiate the Network Service + + ```bash + osm ns-create --ns_name simple-k8s --nsd_name --vim_account --ssh_keys --config '{vld: [ {name: mgmtnet, vim-network-name: } ] }' + ``` + +5. Wait the Network Service to be completed + + ```bash + osm ns-list + ``` + +6. Delete the Network Service + + ```bash + osm ns-delete simple-k8s + ``` + +7. Delete the descriptors + + ```bash + osm nspkg-delete hackfest-simple-k8s-ns + osm nfpkg-delete hackfest-simple-k8s-vnf + ``` ## EPA and performance -- GitLab