Loading deploy_in_kubernetes.sh +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ REGISTRY_IMAGE="" #REGISTRY_IMAGE="http://my-container-registry.local/" # Set the list of components you want to build images for, and deploy. COMPONENTS="context device automation policy service compute monitoring centralizedattackdetector" # TODO: include opticalcentralizedattackdetector COMPONENTS="context device automation policy service compute monitoring centralizedattackdetector dbscanserving opticalattackmitigator opticalcentralizedattackdetector" # TODO: include opticalcentralizedattackdetector # Set the tag you want to use for your images. IMAGE_TAG="tf-dev" Loading install_development_dependencies.sh +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchm echo "" > requirements.in #TODO: include here your component COMPONENTS="compute context device monitoring centralizedattackdetector opticalcentralizedattackdetector" COMPONENTS="compute context device monitoring centralizedattackdetector opticalcentralizedattackdetector opticalattackmitigator dbscanserving" # compiling dependencies from all components for component in $COMPONENTS Loading manifests/dbscanservingservice.yaml 0 → 100644 +66 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: dbscanservingservice spec: selector: matchLabels: app: dbscanservingservice template: metadata: labels: app: dbscanservingservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/dbscanserving:latest imagePullPolicy: Always ports: - containerPort: 10006 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10006"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10006"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: dbscanservingservice spec: type: ClusterIP selector: app: dbscanservingservice ports: - name: grpc port: 10006 targetPort: 10006 --- apiVersion: v1 kind: Service metadata: name: dbscanservingservice-public labels: app: dbscanservingservice spec: type: NodePort selector: app: dbscanservingservice ports: - name: http protocol: TCP port: 10006 targetPort: 10006 --- manifests/opticalattackmitigatorservice.yaml 0 → 100644 +66 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: opticalattackmitigatorservice spec: selector: matchLabels: app: opticalattackmitigatorservice template: metadata: labels: app: opticalattackmitigatorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/opticalattackmitigator:latest imagePullPolicy: Always ports: - containerPort: 10007 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10007"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10007"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: opticalattackmitigatorservice spec: type: ClusterIP selector: app: opticalattackmitigatorservice ports: - name: grpc port: 10007 targetPort: 10007 --- apiVersion: v1 kind: Service metadata: name: opticalattackmitigatorservice-public labels: app: opticalattackmitigatorservice spec: type: NodePort selector: app: opticalattackmitigatorservice ports: - name: http protocol: TCP port: 10007 targetPort: 10007 --- proto/dbscanserving.proto 0 → 100644 +29 −0 Original line number Diff line number Diff line syntax = "proto3"; package dbscanserving; enum Metric { EUCLIDEAN = 0; } message Sample { repeated float features = 1; } message DetectionRequest { float eps = 1; int32 min_samples = 2; Metric metric = 3; int32 num_samples = 4; int32 num_features = 5; repeated Sample samples = 6; optional int32 identifier = 7; } message DetectionResponse { repeated int32 cluster_indices = 1; } service Detector { rpc Detect (DetectionRequest) returns (DetectionResponse); } No newline at end of file Loading
deploy_in_kubernetes.sh +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ REGISTRY_IMAGE="" #REGISTRY_IMAGE="http://my-container-registry.local/" # Set the list of components you want to build images for, and deploy. COMPONENTS="context device automation policy service compute monitoring centralizedattackdetector" # TODO: include opticalcentralizedattackdetector COMPONENTS="context device automation policy service compute monitoring centralizedattackdetector dbscanserving opticalattackmitigator opticalcentralizedattackdetector" # TODO: include opticalcentralizedattackdetector # Set the tag you want to use for your images. IMAGE_TAG="tf-dev" Loading
install_development_dependencies.sh +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchm echo "" > requirements.in #TODO: include here your component COMPONENTS="compute context device monitoring centralizedattackdetector opticalcentralizedattackdetector" COMPONENTS="compute context device monitoring centralizedattackdetector opticalcentralizedattackdetector opticalattackmitigator dbscanserving" # compiling dependencies from all components for component in $COMPONENTS Loading
manifests/dbscanservingservice.yaml 0 → 100644 +66 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: dbscanservingservice spec: selector: matchLabels: app: dbscanservingservice template: metadata: labels: app: dbscanservingservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/dbscanserving:latest imagePullPolicy: Always ports: - containerPort: 10006 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10006"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10006"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: dbscanservingservice spec: type: ClusterIP selector: app: dbscanservingservice ports: - name: grpc port: 10006 targetPort: 10006 --- apiVersion: v1 kind: Service metadata: name: dbscanservingservice-public labels: app: dbscanservingservice spec: type: NodePort selector: app: dbscanservingservice ports: - name: http protocol: TCP port: 10006 targetPort: 10006 ---
manifests/opticalattackmitigatorservice.yaml 0 → 100644 +66 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: opticalattackmitigatorservice spec: selector: matchLabels: app: opticalattackmitigatorservice template: metadata: labels: app: opticalattackmitigatorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/opticalattackmitigator:latest imagePullPolicy: Always ports: - containerPort: 10007 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10007"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10007"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: opticalattackmitigatorservice spec: type: ClusterIP selector: app: opticalattackmitigatorservice ports: - name: grpc port: 10007 targetPort: 10007 --- apiVersion: v1 kind: Service metadata: name: opticalattackmitigatorservice-public labels: app: opticalattackmitigatorservice spec: type: NodePort selector: app: opticalattackmitigatorservice ports: - name: http protocol: TCP port: 10007 targetPort: 10007 ---
proto/dbscanserving.proto 0 → 100644 +29 −0 Original line number Diff line number Diff line syntax = "proto3"; package dbscanserving; enum Metric { EUCLIDEAN = 0; } message Sample { repeated float features = 1; } message DetectionRequest { float eps = 1; int32 min_samples = 2; Metric metric = 3; int32 num_samples = 4; int32 num_features = 5; repeated Sample samples = 6; optional int32 identifier = 7; } message DetectionResponse { repeated int32 cluster_indices = 1; } service Detector { rpc Detect (DetectionRequest) returns (DetectionResponse); } No newline at end of file