diff --git a/deploy_in_kubernetes.sh b/deploy_in_kubernetes.sh index a1b4551dd939e7b1a727307cc177d379e6938182..c81bfc5f1ab09fcca601d054a674e356e3b01c93 100755 --- a/deploy_in_kubernetes.sh +++ b/deploy_in_kubernetes.sh @@ -110,7 +110,7 @@ for COMPONENT in $COMPONENTS; do fi echo " Deploying '$COMPONENT' component to Kubernetes..." - DEPLOY_LOG="$TMP_LOGS_FOLDER/push_${COMPONENT}.log" + DEPLOY_LOG="$TMP_LOGS_FOLDER/deploy_${COMPONENT}.log" kubectl --namespace $K8S_NAMESPACE apply -f "$MANIFEST" > "$DEPLOY_LOG" kubectl --namespace $K8S_NAMESPACE scale deployment --replicas=0 ${COMPONENT}service >> "$DEPLOY_LOG" kubectl --namespace $K8S_NAMESPACE scale deployment --replicas=1 ${COMPONENT}service >> "$DEPLOY_LOG" diff --git a/manifests/l3_attackmitigatorservice.yaml b/manifests/l3_attackmitigatorservice.yaml index 2240776ebb2e234b58febe9520a4b9e07d42b6d4..a0d1b329579c688b62a772798f27921b03ae68d8 100644 --- a/manifests/l3_attackmitigatorservice.yaml +++ b/manifests/l3_attackmitigatorservice.yaml @@ -15,15 +15,15 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: l3-attackmitigatorservice + name: l3_attackmitigatorservice spec: selector: matchLabels: - app: l3-attackmitigatorservice + app: l3_attackmitigatorservice template: metadata: labels: - app: l3-attackmitigatorservice + app: l3_attackmitigatorservice spec: terminationGracePeriodSeconds: 5 containers: @@ -52,11 +52,11 @@ spec: apiVersion: v1 kind: Service metadata: - name: l3-attackmitigatorservice + name: l3_attackmitigatorservice spec: type: ClusterIP selector: - app: l3-attackmitigatorservice + app: l3_attackmitigatorservice ports: - name: grpc port: 10002 diff --git a/manifests/l3_centralizedattackdetectorservice.yaml b/manifests/l3_centralizedattackdetectorservice.yaml index fa7ee9dccd99982d35d7f7705e463ecee30c7c9b..a41e76f2b7cfee3558805edb802ae51faf73f120 100644 --- a/manifests/l3_centralizedattackdetectorservice.yaml +++ b/manifests/l3_centralizedattackdetectorservice.yaml @@ -15,15 +15,15 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: l3-centralizedattackdetectorservice + name: l3_centralizedattackdetectorservice spec: selector: matchLabels: - app: l3-centralizedattackdetectorservice + app: l3_centralizedattackdetectorservice template: metadata: labels: - app: l3-centralizedattackdetectorservice + app: l3_centralizedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: @@ -52,11 +52,11 @@ spec: apiVersion: v1 kind: Service metadata: - name: l3-centralizedattackdetectorservice + name: l3_centralizedattackdetectorservice spec: type: ClusterIP selector: - app: l3-centralizedattackdetectorservice + app: l3_centralizedattackdetectorservice ports: - name: grpc port: 10001 diff --git a/manifests/l3_distributedattackdetectorservice.yaml b/manifests/l3_distributedattackdetectorservice.yaml index 6b28f68dd5e08561eb29e4512af330b26f6408cf..537915a39c79987038bb83b0d57fcb8305558c6f 100644 --- a/manifests/l3_distributedattackdetectorservice.yaml +++ b/manifests/l3_distributedattackdetectorservice.yaml @@ -15,15 +15,15 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: l3-distributedattackdetectorservice + name: l3_distributedattackdetectorservice spec: selector: matchLabels: - app: l3-distributedattackdetectorservice + app: l3_distributedattackdetectorservice template: metadata: labels: - app: l3-distributedattackdetectorservice + app: l3_distributedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: @@ -52,11 +52,11 @@ spec: apiVersion: v1 kind: Service metadata: - name: l3-distributedattackdetectorservice + name: l3_distributedattackdetectorservice spec: type: ClusterIP selector: - app: l3-distributedattackdetectorservice + app: l3_distributedattackdetectorservice ports: - name: grpc port: 10000 diff --git a/src/l3_centralizedattackdetector/requirements.in b/src/l3_centralizedattackdetector/requirements.in index 9a1a05518bbe63bba70192fcb19e71c68d143246..9e25a1c28fb6c472e92bbb175eaa1c030fffe760 100644 --- a/src/l3_centralizedattackdetector/requirements.in +++ b/src/l3_centralizedattackdetector/requirements.in @@ -1,3 +1,3 @@ numpy==1.23.* -scikit-learn==1.12.* -onnxruntime==1.1.* +onnxruntime==1.12.* +scikit-learn==1.1.*