Commit a9e39340 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch 'feat/opticalcentralizedattackdetector-service' into 'develop'

Commit for the first code freeze

See merge request teraflow-h2020/controller!46
parents 1acb70b3 a5f49aee
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@ include:
  - local: '/src/context/.gitlab-ci.yml'
  - local: '/src/device/.gitlab-ci.yml'
  - local: '/src/service/.gitlab-ci.yml'
  - local: '/src/dbscanserving/.gitlab-ci.yml'
  - local: '/src/opticalattackmitigator/.gitlab-ci.yml'
  - 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'
+1 −1
Original line number Diff line number Diff line
@@ -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"
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"
+1 −1
Original line number Diff line number Diff line
@@ -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"
COMPONENTS="compute context device monitoring centralizedattackdetector opticalcentralizedattackdetector opticalattackmitigator dbscanserving"

# compiling dependencies from all components
for component in $COMPONENTS
+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
---
+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
---
Loading