Loading .gitlab-ci.yml +19 −3 Original line number Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # stages of the cicd pipeline stages: - dependencies Loading @@ -21,6 +35,8 @@ include: - local: '/src/opticalcentralizedattackdetector/.gitlab-ci.yml' - local: '/src/automation/.gitlab-ci.yml' - local: '/src/webui/.gitlab-ci.yml' - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' - local: '/src/l3_attackmitigator/.gitlab-ci.yml' #- local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' #- local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' #- local: '/src/l3_attackmitigator/.gitlab-ci.yml' #- local: '/src/slice/.gitlab-ci.yml' #- local: '/src/interdomain/.gitlab-ci.yml' deploy_in_kubernetes.sh +6 −3 Original line number Diff line number Diff line Loading @@ -131,9 +131,12 @@ for COMPONENT in $COMPONENTS; do printf "\n" done echo "Configuring DataStores and Dashboards..." if [[ "$COMPONENTS" == *"webui"* ]]; then echo "Configuring WebUI DataStores and Dashboards..." ./configure_dashboards.sh printf "\n\n" fi echo "Reporting Deployment..." kubectl --namespace $K8S_NAMESPACE get all Loading manifests/interdomainservice.yaml 0 → 100644 +64 −0 Original line number Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: interdomainservice spec: selector: matchLabels: app: interdomainservice template: metadata: labels: app: interdomainservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/interdomain:latest imagePullPolicy: Always ports: - containerPort: 10010 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10010"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10010"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: interdomainservice spec: type: ClusterIP selector: app: interdomainservice ports: - name: grpc protocol: TCP port: 10010 targetPort: 10010 manifests/sliceservice.yaml 0 → 100644 +64 −0 Original line number Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: sliceservice spec: selector: matchLabels: app: sliceservice template: metadata: labels: app: sliceservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/slice:latest imagePullPolicy: Always ports: - containerPort: 4040 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:4040"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:4040"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: sliceservice spec: type: ClusterIP selector: app: sliceservice ports: - name: grpc protocol: TCP port: 4040 targetPort: 4040 manifests/webuiservice.yaml +4 −4 Original line number Diff line number Diff line Loading @@ -71,14 +71,14 @@ spec: path: /robots.txt port: 3000 scheme: HTTP initialDelaySeconds: 5 periodSeconds: 5 initialDelaySeconds: 10 periodSeconds: 30 successThreshold: 1 timeoutSeconds: 2 livenessProbe: failureThreshold: 3 initialDelaySeconds: 5 periodSeconds: 5 initialDelaySeconds: 30 periodSeconds: 10 successThreshold: 1 tcpSocket: port: 3000 Loading Loading
.gitlab-ci.yml +19 −3 Original line number Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # stages of the cicd pipeline stages: - dependencies Loading @@ -21,6 +35,8 @@ include: - local: '/src/opticalcentralizedattackdetector/.gitlab-ci.yml' - local: '/src/automation/.gitlab-ci.yml' - local: '/src/webui/.gitlab-ci.yml' - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' - local: '/src/l3_attackmitigator/.gitlab-ci.yml' #- local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' #- local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' #- local: '/src/l3_attackmitigator/.gitlab-ci.yml' #- local: '/src/slice/.gitlab-ci.yml' #- local: '/src/interdomain/.gitlab-ci.yml'
deploy_in_kubernetes.sh +6 −3 Original line number Diff line number Diff line Loading @@ -131,9 +131,12 @@ for COMPONENT in $COMPONENTS; do printf "\n" done echo "Configuring DataStores and Dashboards..." if [[ "$COMPONENTS" == *"webui"* ]]; then echo "Configuring WebUI DataStores and Dashboards..." ./configure_dashboards.sh printf "\n\n" fi echo "Reporting Deployment..." kubectl --namespace $K8S_NAMESPACE get all Loading
manifests/interdomainservice.yaml 0 → 100644 +64 −0 Original line number Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: interdomainservice spec: selector: matchLabels: app: interdomainservice template: metadata: labels: app: interdomainservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/interdomain:latest imagePullPolicy: Always ports: - containerPort: 10010 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10010"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10010"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: interdomainservice spec: type: ClusterIP selector: app: interdomainservice ports: - name: grpc protocol: TCP port: 10010 targetPort: 10010
manifests/sliceservice.yaml 0 → 100644 +64 −0 Original line number Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: sliceservice spec: selector: matchLabels: app: sliceservice template: metadata: labels: app: sliceservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/slice:latest imagePullPolicy: Always ports: - containerPort: 4040 env: - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:4040"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:4040"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: sliceservice spec: type: ClusterIP selector: app: sliceservice ports: - name: grpc protocol: TCP port: 4040 targetPort: 4040
manifests/webuiservice.yaml +4 −4 Original line number Diff line number Diff line Loading @@ -71,14 +71,14 @@ spec: path: /robots.txt port: 3000 scheme: HTTP initialDelaySeconds: 5 periodSeconds: 5 initialDelaySeconds: 10 periodSeconds: 30 successThreshold: 1 timeoutSeconds: 2 livenessProbe: failureThreshold: 3 initialDelaySeconds: 5 periodSeconds: 5 initialDelaySeconds: 30 periodSeconds: 10 successThreshold: 1 tcpSocket: port: 3000 Loading