From e92a18de52a36a3b2685906de676ebf94afb9302 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 3 Jul 2020 16:24:23 +0000 Subject: [PATCH] feat8157-vnfindicators: added local k8s cluster to deploy snmp exporters Change-Id: I042d5cb642ffb1fc5e768b18172272324b617da5 Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index e9a2e0d5..a678b74b 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -977,6 +977,23 @@ function deploy_elk() { return 0 } +function add_local_k8scluster() { + /usr/bin/osm --all-projects vim-create \ + --name _system-osm-vim \ + --account_type dummy \ + --auth_url http://dummy \ + --user osm --password osm --tenant osm \ + --description "dummy" \ + --config '{management_network_name: mgmt}' + /usr/bin/osm --all-projects k8scluster-add \ + --creds ${HOME}/.kube/config \ + --vim _system-osm-vim \ + --k8s-nets '{"net1": null}' \ + --version '1.15' \ + --description "OSM Internal Cluster" \ + _system-osm-k8s +} + function install_lightweight() { [ "${OSM_STACK_NAME}" == "osm" ] || OSM_DOCKER_WORK_DIR="$OSM_WORK_DIR/stack/$OSM_STACK_NAME" [ -n "$KUBERNETES" ] && OSM_K8S_WORK_DIR="$OSM_DOCKER_WORK_DIR/osm_pods" && OSM_NAMESPACE_VOL="${OSM_HOST_VOL}/${OSM_STACK_NAME}" @@ -1186,6 +1203,10 @@ EOF fi track after_healthcheck + [ -n "$KUBERNETES" ] && add_local_k8scluster + track add_local_k8scluster + + wget -q -O- https://osm-download.etsi.org/ftp/osm-8.0-eight/README2.txt &> /dev/null track end return 0 -- 2.25.1