Loading .gitlab-ci.yml +5 −5 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ stages: include: - local: '/manifests/.gitlab-ci.yml' - local: '/src/monitoring/.gitlab-ci.yml' #- local: '/src/centralizedattackdetector/.gitlab-ci.yml' - local: '/src/compute/.gitlab-ci.yml' - local: '/src/context/.gitlab-ci.yml' - local: '/src/device/.gitlab-ci.yml' - local: '/src/service/.gitlab-ci.yml' Loading @@ -21,7 +21,7 @@ include: - local: '/src/opticalcentralizedattackdetector/.gitlab-ci.yml' #- local: '/src/tester_integration/.gitlab-ci.yml' #- local: '/src/tester_functional/.gitlab-ci.yml' #- local: '/src/automation/.gitlab-ci.yml' - local: '/src/automation/.gitlab-ci.yml' # - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' # - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' # - local: '/src/l3_attackmitigator/.gitlab-ci.yml' 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 dbscanserving opticalattackmitigator opticalcentralizedattackdetector" # TODO: include opticalcentralizedattackdetector COMPONENTS="context device automation policy service compute monitoring dbscanserving opticalattackmitigator 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 opticalattackmitigator dbscanserving" COMPONENTS="compute context device service monitoring opticalcentralizedattackdetector opticalattackmitigator dbscanserving" # compiling dependencies from all components for component in $COMPONENTS Loading manifests/.gitignore 0 → 100644 +4 −0 Original line number Diff line number Diff line # Internal manifest used for local testings. # CTTC section: cttc-ols/ manifests/centralizedattackdetectorservice.yamldeleted 100644 → 0 +0 −70 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: centralizedattackdetectorervice spec: selector: matchLabels: app: centralizedattackdetectorervice template: metadata: labels: app: centralizedattackdetectorervice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/centralizedcybersecurity:latest imagePullPolicy: Always ports: - containerPort: 10000 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorervice spec: type: ClusterIP selector: app: centralizedattackdetectorervice ports: - name: grpc port: 10000 targetPort: 10000 --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorervice-public labels: app: centralizedattackdetectorervice spec: type: NodePort selector: app: centralizedattackdetectorervice ports: - name: grpc protocol: TCP port: 10000 targetPort: 10000 --- Loading
.gitlab-ci.yml +5 −5 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ stages: include: - local: '/manifests/.gitlab-ci.yml' - local: '/src/monitoring/.gitlab-ci.yml' #- local: '/src/centralizedattackdetector/.gitlab-ci.yml' - local: '/src/compute/.gitlab-ci.yml' - local: '/src/context/.gitlab-ci.yml' - local: '/src/device/.gitlab-ci.yml' - local: '/src/service/.gitlab-ci.yml' Loading @@ -21,7 +21,7 @@ include: - local: '/src/opticalcentralizedattackdetector/.gitlab-ci.yml' #- local: '/src/tester_integration/.gitlab-ci.yml' #- local: '/src/tester_functional/.gitlab-ci.yml' #- local: '/src/automation/.gitlab-ci.yml' - local: '/src/automation/.gitlab-ci.yml' # - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' # - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' # - local: '/src/l3_attackmitigator/.gitlab-ci.yml'
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 dbscanserving opticalattackmitigator opticalcentralizedattackdetector" # TODO: include opticalcentralizedattackdetector COMPONENTS="context device automation policy service compute monitoring dbscanserving opticalattackmitigator 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 opticalattackmitigator dbscanserving" COMPONENTS="compute context device service monitoring opticalcentralizedattackdetector opticalattackmitigator dbscanserving" # compiling dependencies from all components for component in $COMPONENTS Loading
manifests/.gitignore 0 → 100644 +4 −0 Original line number Diff line number Diff line # Internal manifest used for local testings. # CTTC section: cttc-ols/
manifests/centralizedattackdetectorservice.yamldeleted 100644 → 0 +0 −70 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: centralizedattackdetectorervice spec: selector: matchLabels: app: centralizedattackdetectorervice template: metadata: labels: app: centralizedattackdetectorervice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/centralizedcybersecurity:latest imagePullPolicy: Always ports: - containerPort: 10000 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorervice spec: type: ClusterIP selector: app: centralizedattackdetectorervice ports: - name: grpc port: 10000 targetPort: 10000 --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorervice-public labels: app: centralizedattackdetectorervice spec: type: NodePort selector: app: centralizedattackdetectorervice ports: - name: grpc protocol: TCP port: 10000 targetPort: 10000 ---