diff --git a/02-osm-nfvi-test-plan.md b/02-osm-nfvi-test-plan.md index c9fbfa9a4438577cdd0621f691887255d2560a87..91f193b6c98a9ba0ef369aa5d20d78cc87d14bc9 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