From f7cd46cc2ae80f3d32206ee4fb0664d295c6e047 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 17 Jul 2020 16:39:37 +0000 Subject: [PATCH] Openldap helmchart-based KNF and NS packages Signed-off-by: garciadeblas --- openldap_knf/openldap_vnfd.yaml | 21 +++++++++++++++++++++ openldap_ns/README.md | 26 ++++++++++++++++++++++++++ openldap_ns/openldap_nsd.yaml | 22 ++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 openldap_knf/openldap_vnfd.yaml create mode 100644 openldap_ns/README.md create mode 100644 openldap_ns/openldap_nsd.yaml diff --git a/openldap_knf/openldap_vnfd.yaml b/openldap_knf/openldap_vnfd.yaml new file mode 100644 index 00000000..3fecf0ca --- /dev/null +++ b/openldap_knf/openldap_vnfd.yaml @@ -0,0 +1,21 @@ +vnfd-catalog: + schema-version: '3.0' + vnfd: + - id: openldap_knf + name: openldap_knf + short-name: openldap_knf + description: KNF with single KDU using a helm-chart for openldap version 1.2.1 + vendor: Telefonica + version: '1.0' + mgmt-interface: + cp: mgmt + connection-point: + - name: mgmt + k8s-cluster: + nets: + - id: mgmtnet + external-connection-point-ref: mgmt + kdu: + - name: ldap + helm-chart: stable/openldap:1.2.1 + diff --git a/openldap_ns/README.md b/openldap_ns/README.md new file mode 100644 index 00000000..8424611f --- /dev/null +++ b/openldap_ns/README.md @@ -0,0 +1,26 @@ +# SIMPLE OPEN-LDAP CHART + +Descriptors that installs an openldap version 1.2.1 chart in a K8s cluster + +There is one VNF (openldap\_vnf) with only one KDU. + +There is one NS that connects the VNF to a mgmt network + +## Onboarding and instantiation + +```bash +osm nfpkg-create openldap_knf.tar.gz +osm nspkg-create openldap_ns.tar.gz +osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --ssh_keys ${HOME}/.ssh/id_rsa.pub +``` + +### Instantiation option + +Some parameters could be passed during the instantiation. + +* replicaCount: Number of Open LDAP replicas that will be created + +```bash +osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --config '{additionalParamsForVnf: [{"member-vnf-index": "openldap", "additionalParams": {"replicaCount": "2"}}]}' +``` + diff --git a/openldap_ns/openldap_nsd.yaml b/openldap_ns/openldap_nsd.yaml new file mode 100644 index 00000000..535a54d5 --- /dev/null +++ b/openldap_ns/openldap_nsd.yaml @@ -0,0 +1,22 @@ +nsd-catalog: + nsd: + - id: openldap_ns + name: openldap_ns + short-name: openldap_ns + description: NS consisting of a single KNF openldap_knf connected to mgmt network + vendor: OSM + version: '1.0' + logo: osm.png + constituent-vnfd: + - member-vnf-index: openldap + vnfd-id-ref: openldap_knf + vld: + - id: mgmtnet + name: mgmtnet + type: ELAN + mgmt-network: 'true' + vnfd-connection-point-ref: + - member-vnf-index-ref: openldap + vnfd-id-ref: openldap_knf + vnfd-connection-point-ref: mgmt + -- GitLab