Loading deploy/all.sh +4 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ export TFS_REGISTRY_IMAGES=${TFS_REGISTRY_IMAGES:-"http://localhost:32000/tfs/"} # If not already set, set the list of components, separated by spaces, you want to build images for, and deploy. # By default, only basic components are deployed export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp monitoring pathcomp service slice nbi webui load_generator"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"alto context device ztp monitoring pathcomp service slice nbi webui load_generator"} # If not already set, set the tag you want to use for your images. export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"} Loading Loading @@ -155,6 +155,9 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"} # If not already set, set the external port Grafana HTTP Dashboards will be exposed to. export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} #If not already set, set the external port ALTO will be exposed to. export ALTO_EXT_PORT_HTTP=${ALTO_EXT_PORT_HTTP:-"5000"} ######################################################################################################################## # Automated steps start here Loading deploy/expose_dashboard.sh +15 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"} # If not already set, set the external port Grafana HTTP Dashboards will be exposed to. export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # If not already set, set the external port ALTO HTTP Dashboards will be exposed to. # export ALTO_EXT_PORT_HTTP=${ALTO_EXT_PORT_HTTP:-"5000"} ######################################################################################################################## # Automated steps start here Loading Loading @@ -55,6 +57,19 @@ function expose_dashboard() { PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" echo # echo "ALTO Port Mapping" # echo ">>> Expose ALTO HTTP Mgmt GUI port (5000->${ALTO_EXT_PORT_HTTP})" # ALTO_PORT_HTTP=$(kubectl --namespace ${MONITORING_NAMESPACE} get service alto -o 'jsonpath={.spec.ports[?(@.name=="http")].port}') # PATCH='{"data": {"'${ALTO_EXT_PORT_HTTP}'": "'${MONITORING_NAMESPACE}'/alto:'${ALTO_PORT_HTTP}'"}}' # kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}" # PORT_MAP='{"containerPort": '${ALTO_EXT_PORT_HTTP}', "hostPort": '${ALTO_EXT_PORT_HTTP}'}' # CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' # PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' # kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" # echo } if kubectl get namespace ${MONITORING_NAMESPACE} &> /dev/null; then Loading deploy/tfs.sh +3 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ export TFS_REGISTRY_IMAGES=${TFS_REGISTRY_IMAGES:-"http://localhost:32000/tfs/"} # If not already set, set the list of components, separated by spaces, you want to build images for, and deploy. # By default, only basic components are deployed export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp monitoring pathcomp service slice nbi webui load_generator"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp monitoring pathcomp service slice nbi webui load_generator alto"} # If not already set, set the tag you want to use for your images. export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"} Loading Loading @@ -114,6 +114,8 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"} # If not already set, set the external port Grafana HTTP Dashboards will be exposed to. export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # If not already set, set the external port ALTO HTTP Dashboards will be exposed to. # export ALTO_EXT_PORT_HTTP=${ALTO_EXT_PORT_HTTP:-"5000"} ######################################################################################################################## # Automated steps start here Loading expose_ingress_grpc.sh +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"} # If not already set, set the list of components you want to build images for, and deploy. export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp policy service nbi monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector l3_attackmitigator l3_centralizedattackdetector webui"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp policy service nbi monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector l3_attackmitigator l3_centralizedattackdetector webui alto"} ######################################################################################################################## # Automated steps start here Loading index.html 0 → 100644 +11 −0 Original line number Diff line number Diff line <h1>ALTO PoC's API</h1> <h2>Services expossed:</h2> <p><ul> <li>All disjunts paths between A & B: <b><tt> /all/<string:a>/<string:b> </b></tt></li> <li>Shortest path between A & B: <b><tt> /best/<string:a>/<string:b> </b></tt></li> <li>Costs map: /costmap </li> <li>PIDs map: /networkmap </li> <li>Filtered Cost map: /costmap/filter/<string:pid></li> </ul></p> No newline at end of file Loading
deploy/all.sh +4 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ export TFS_REGISTRY_IMAGES=${TFS_REGISTRY_IMAGES:-"http://localhost:32000/tfs/"} # If not already set, set the list of components, separated by spaces, you want to build images for, and deploy. # By default, only basic components are deployed export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp monitoring pathcomp service slice nbi webui load_generator"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"alto context device ztp monitoring pathcomp service slice nbi webui load_generator"} # If not already set, set the tag you want to use for your images. export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"} Loading Loading @@ -155,6 +155,9 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"} # If not already set, set the external port Grafana HTTP Dashboards will be exposed to. export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} #If not already set, set the external port ALTO will be exposed to. export ALTO_EXT_PORT_HTTP=${ALTO_EXT_PORT_HTTP:-"5000"} ######################################################################################################################## # Automated steps start here Loading
deploy/expose_dashboard.sh +15 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"} # If not already set, set the external port Grafana HTTP Dashboards will be exposed to. export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # If not already set, set the external port ALTO HTTP Dashboards will be exposed to. # export ALTO_EXT_PORT_HTTP=${ALTO_EXT_PORT_HTTP:-"5000"} ######################################################################################################################## # Automated steps start here Loading Loading @@ -55,6 +57,19 @@ function expose_dashboard() { PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" echo # echo "ALTO Port Mapping" # echo ">>> Expose ALTO HTTP Mgmt GUI port (5000->${ALTO_EXT_PORT_HTTP})" # ALTO_PORT_HTTP=$(kubectl --namespace ${MONITORING_NAMESPACE} get service alto -o 'jsonpath={.spec.ports[?(@.name=="http")].port}') # PATCH='{"data": {"'${ALTO_EXT_PORT_HTTP}'": "'${MONITORING_NAMESPACE}'/alto:'${ALTO_PORT_HTTP}'"}}' # kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}" # PORT_MAP='{"containerPort": '${ALTO_EXT_PORT_HTTP}', "hostPort": '${ALTO_EXT_PORT_HTTP}'}' # CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' # PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' # kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" # echo } if kubectl get namespace ${MONITORING_NAMESPACE} &> /dev/null; then Loading
deploy/tfs.sh +3 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ export TFS_REGISTRY_IMAGES=${TFS_REGISTRY_IMAGES:-"http://localhost:32000/tfs/"} # If not already set, set the list of components, separated by spaces, you want to build images for, and deploy. # By default, only basic components are deployed export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp monitoring pathcomp service slice nbi webui load_generator"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp monitoring pathcomp service slice nbi webui load_generator alto"} # If not already set, set the tag you want to use for your images. export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"} Loading Loading @@ -114,6 +114,8 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"} # If not already set, set the external port Grafana HTTP Dashboards will be exposed to. export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # If not already set, set the external port ALTO HTTP Dashboards will be exposed to. # export ALTO_EXT_PORT_HTTP=${ALTO_EXT_PORT_HTTP:-"5000"} ######################################################################################################################## # Automated steps start here Loading
expose_ingress_grpc.sh +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"} # If not already set, set the list of components you want to build images for, and deploy. export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp policy service nbi monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector l3_attackmitigator l3_centralizedattackdetector webui"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device ztp policy service nbi monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector l3_attackmitigator l3_centralizedattackdetector webui alto"} ######################################################################################################################## # Automated steps start here Loading
index.html 0 → 100644 +11 −0 Original line number Diff line number Diff line <h1>ALTO PoC's API</h1> <h2>Services expossed:</h2> <p><ul> <li>All disjunts paths between A & B: <b><tt> /all/<string:a>/<string:b> </b></tt></li> <li>Shortest path between A & B: <b><tt> /best/<string:a>/<string:b> </b></tt></li> <li>Costs map: /costmap </li> <li>PIDs map: /networkmap </li> <li>Filtered Cost map: /costmap/filter/<string:pid></li> </ul></p> No newline at end of file