Commit 5d232aa4 authored by Luis de la Cal's avatar Luis de la Cal
Browse files

Added L3 security status KPIs monitoring

parent b0fc762c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -18,10 +18,10 @@
########################################################################################################################

# If not already set, set the name of the Kubernetes namespace to deploy to.
export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs-dev"}
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 automation policy service compute monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector webui"}
export TFS_COMPONENTS=${TFS_COMPONENTS:-"l3_attackmitigator l3_centralizedattackdetector"}

########################################################################################################################
# Automated steps start here
@@ -37,7 +37,8 @@ for COMPONENT in $TFS_COMPONENTS; do
        continue;
    fi

    PATCH='{"data": {"'${SERVICE_GRPC_PORT}'": "'$TFS_K8S_NAMESPACE'/'${COMPONENT}service':'${SERVICE_GRPC_PORT}'"}}'
    COMPONENT_OBJNAME=$(echo "${COMPONENT}" | sed "s/\_/-/")
    PATCH='{"data": {"'${SERVICE_GRPC_PORT}'": "'$TFS_K8S_NAMESPACE'/'${COMPONENT_OBJNAME}service':'${SERVICE_GRPC_PORT}'"}}'
    #echo "PATCH: ${PATCH}"
    kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}"

log_netstat.txt

0 → 100644
+505 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
export TFS_REGISTRY_IMAGE="http://localhost:32000/tfs/"
export TFS_COMPONENTS="context device automation service compute monitoring webui"
export TFS_COMPONENTS="context device service compute l3_attackmitigator l3_centralizedattackdetector"
export TFS_IMAGE_TAG="dev"
export TFS_K8S_NAMESPACE="tfs"
export TFS_EXTRA_MANIFESTS="manifests/nginx_ingress_http.yaml"
+1 −1
Original line number Diff line number Diff line
src/tests/ofc22/
 No newline at end of file
src/tests/ofc22
 No newline at end of file
+4 −3
Original line number Diff line number Diff line
@@ -36,7 +36,8 @@ message L3AttackmitigatorOutput {
	string port_o = 9;
	string port_d = 10;
	string ml_id = 11;
	string service_id = 12; 
	float time_start = 13;
	float time_end = 14;
	context.ServiceId service_id = 12;
	context.EndPointId endpoint_id = 13; 
	float time_start = 14;
	float time_end = 15;
}
Loading