Skip to content
Snippets Groups Projects
Commit faa45857 authored by garciadeblas's avatar garciadeblas
Browse files

feat8157-vnfindicators: added local k8s cluster to deploy snmp exporters


Change-Id: I042d5cb642ffb1fc5e768b18172272324b617da5
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent d32b787c
No related branches found
No related tags found
No related merge requests found
......@@ -993,6 +993,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}"
......@@ -1203,6 +1220,9 @@ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment