Commit 7bc14e6d authored by Francisco-Javier Ramon Salguero's avatar Francisco-Javier Ramon Salguero
Browse files

Added K8s-04 test (OpenLDAP)

parent 24df01c9
Loading
Loading
Loading
Loading
+72 −8
Original line number Diff line number Diff line
@@ -1408,52 +1408,116 @@ The steps to be done are the following:
   osm k8scluster-list
   ```

### \[K8s-03\] Deployment of CNF from OSM
### \[K8s-03\] Deployment of CNF with Juju Bundle from OSM

1. Register the Kubernetes cluster in OSM
1. Register the Kubernetes cluster in OSM:

   ```bash
   osm k8scluster-add --creds <KUBECONFIG_FILE> --version v1 --vim <VIM_NAME> --k8s-nets '{"net1": <VIM_MGMT_NETWORK>}' --description "K8s cluster" osm-k8s-cluster
   ```

2. Check that the Kubernetes cluster is successully added
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

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
4. Instantiate the Network Service:

   ```bash
   osm ns-create --ns_name simple-k8s --nsd_name  --vim_account <VIM_ACCOUNT_NAME>  --ssh_keys <PUBLIC_KEY> --config '{vld: [ {name: mgmtnet, vim-network-name: <VIM_MGMT_NET>} ] }'
   ```

5. Wait the Network Service to be completed
5. Wait the Network Service to be completed:

   ```bash
   osm ns-list
   ```

6. Delete the Network Service
6. Delete the Network Service:

   ```bash
   osm ns-delete simple-k8s
   ```

7. Delete the descriptors
7. Delete the descriptors:

   ```bash
   osm nspkg-delete hackfest-simple-k8s-ns
   osm nfpkg-delete hackfest-simple-k8s-vnf
   ```

8. If applicable, deregister the Kubernetes cluster from OSM:

   ```bash
   osm k8scluster-delete osm-k8s-cluster
   ```

### \[K8s-04\] Deployment of OpenLDAP CNF with Helm Chart from OSM

1. Register the Kubernetes cluster in OSM:

   ```bash
   osm k8scluster-add --creds <KUBECONFIG_FILE> --version v1 --vim <VIM_NAME> --k8s-nets '{"net1": <VIM_MGMT_NETWORK>}' --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 (from OSM's Packages Git repo):

   ```bash
   # If not previusly done:
   # $ git clone ssh://git@osm.etsi.org:29419/vnf-onboarding/osm-packages.git
   # $ cd osm-packages

   osm nfpkg-create openldap_knf
   osm nspkg-create openldap_ns
   ```

4. Instantiate the Network Service:

   ```bash
   osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account <VIM_ACCOUNT_NAME>  --ssh_keys <PUBLIC_KEY> --config '{vld: [ {name: mgmtnet, vim-network-name: <VIM_MGMT_NET>} ] }'
   ```

5. Wait the Network Service to be completed:

   ```bash
   osm ns-list
   ```

6. Delete the Network Service:

   ```bash
   osm ns-delete ldap
   ```

7. Delete the descriptors:

   ```bash
   osm nspkg-delete openldap_ns
   osm nfpkg-delete openldap_knf
   ```

8. If applicable, deregister the Kubernetes cluster from OSM:

   ```bash
   osm k8scluster-delete osm-k8s-cluster
   ```

## EPA and performance

### \[EPA-01\] EPA+SR-IOV without underlay