From: garciadeblas Date: Fri, 3 Jul 2020 16:24:23 +0000 (+0000) Subject: feat8157-vnfindicators: added local k8s cluster to deploy snmp exporters X-Git-Tag: release-v9.0-start~88 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F9316%2F3;p=osm%2Fdevops.git feat8157-vnfindicators: added local k8s cluster to deploy snmp exporters Change-Id: I042d5cb642ffb1fc5e768b18172272324b617da5 Signed-off-by: garciadeblas --- 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