Loading expose_ingress_grpc.sh +4 −3 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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}" Loading log_netstat.txt 0 → 100644 +505 −0 File added.Preview size limit exceeded, changes collapsed. Show changes my_deploy.sh +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" Loading ofc22 +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 proto/l3_attackmitigator.proto +4 −3 Original line number Diff line number Diff line Loading @@ -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
expose_ingress_grpc.sh +4 −3 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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}" Loading
log_netstat.txt 0 → 100644 +505 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
my_deploy.sh +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" Loading
ofc22 +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
proto/l3_attackmitigator.proto +4 −3 Original line number Diff line number Diff line Loading @@ -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; }