From 380cded0fc06795726746d8960b47a044f728232 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Wed, 6 Sep 2023 16:32:54 +0000 Subject: [PATCH] Manifests: - Activated DEBUG in Context, Device, DLT Connector, InterDomain, PathComp FrontEnd, Service, Slice, WebUI, and Mock BlockChain components - Corrected resource requests and limits for InterDomain, DLT Connector, DLT Gateway, Mock BlockChain, and WebUI components - Activated TopologyAbstractor in InterDomain component - Activated use of Mock BlockChain in DLT Connector - Deactivated DLT Gateway in DLT component --- manifests/contextservice.yaml | 2 +- manifests/deviceservice.yaml | 2 +- manifests/dltservice.yaml | 67 ++++++++++++++++--------------- manifests/interdomainservice.yaml | 6 +-- manifests/mock_blockchain.yaml | 8 ++-- manifests/pathcompservice.yaml | 2 +- manifests/serviceservice.yaml | 2 +- manifests/sliceservice.yaml | 2 +- manifests/webuiservice.yaml | 4 +- 9 files changed, 48 insertions(+), 47 deletions(-) diff --git a/manifests/contextservice.yaml b/manifests/contextservice.yaml index 96735bf5f..e0e26cb9f 100644 --- a/manifests/contextservice.yaml +++ b/manifests/contextservice.yaml @@ -40,7 +40,7 @@ spec: - name: MB_BACKEND value: "nats" - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" envFrom: - secretRef: name: crdb-data diff --git a/manifests/deviceservice.yaml b/manifests/deviceservice.yaml index 77e421f29..7f7885daf 100644 --- a/manifests/deviceservice.yaml +++ b/manifests/deviceservice.yaml @@ -39,7 +39,7 @@ spec: - containerPort: 9192 env: - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" startupProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:2020"] diff --git a/manifests/dltservice.yaml b/manifests/dltservice.yaml index 5e8f745f7..8e5b1e4e5 100644 --- a/manifests/dltservice.yaml +++ b/manifests/dltservice.yaml @@ -35,12 +35,12 @@ spec: - containerPort: 9192 env: - name: LOG_LEVEL - value: "INFO" - ## for debug purposes - #- name: DLT_GATEWAY_HOST - # value: "mock-blockchain.tfs-bchain.svc.cluster.local" - #- name: DLT_GATEWAY_PORT - # value: "50051" + value: "DEBUG" + ## For debug purposes. Comment out DLT_GATEWAY_HOST and DLT_GATEWAY_PORT to use normal DLT Gateway component. + - name: DLT_GATEWAY_HOST + value: "mock-blockchain.tfs-bchain.svc.cluster.local" + - name: DLT_GATEWAY_PORT + value: "50051" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:8080"] @@ -49,35 +49,36 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:8080"] resources: requests: - cpu: 50m - memory: 64Mi + cpu: 250m + memory: 128Mi limits: - cpu: 500m - memory: 512Mi - - name: gateway - image: labs.etsi.org:5050/tfs/controller/dlt-gateway:latest - imagePullPolicy: Always - ports: - - containerPort: 50051 - #readinessProbe: - # httpGet: - # path: /health - # port: 8081 - # initialDelaySeconds: 5 - # timeoutSeconds: 5 - #livenessProbe: - # httpGet: - # path: /health - # port: 8081 - # initialDelaySeconds: 5 - # timeoutSeconds: 5 - resources: - requests: - cpu: 200m - memory: 512Mi - limits: - cpu: 700m + cpu: 1000m memory: 1024Mi + ## For normal operation, uncomment the gateway container. + #- name: gateway + # image: labs.etsi.org:5050/tfs/controller/dlt-gateway:latest + # imagePullPolicy: Always + # ports: + # - containerPort: 50051 + # #readinessProbe: + # # httpGet: + # # path: /health + # # port: 8081 + # # initialDelaySeconds: 5 + # # timeoutSeconds: 5 + # #livenessProbe: + # # httpGet: + # # path: /health + # # port: 8081 + # # initialDelaySeconds: 5 + # # timeoutSeconds: 5 + # resources: + # requests: + # cpu: 250m + # memory: 512Mi + # limits: + # cpu: 1000m + # memory: 1024Mi --- apiVersion: v1 kind: Service diff --git a/manifests/interdomainservice.yaml b/manifests/interdomainservice.yaml index a23583402..8ecf3cd65 100644 --- a/manifests/interdomainservice.yaml +++ b/manifests/interdomainservice.yaml @@ -35,9 +35,9 @@ spec: - containerPort: 9192 env: - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" - name: TOPOLOGY_ABSTRACTOR - value: "DISABLE" + value: "ENABLE" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10010"] @@ -47,7 +47,7 @@ spec: resources: requests: cpu: 250m - memory: 64Mi + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/manifests/mock_blockchain.yaml b/manifests/mock_blockchain.yaml index 1093610f8..779c80da0 100644 --- a/manifests/mock_blockchain.yaml +++ b/manifests/mock_blockchain.yaml @@ -34,7 +34,7 @@ spec: - containerPort: 50051 env: - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:50051"] @@ -43,10 +43,10 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:50051"] resources: requests: - cpu: 100m - memory: 512Mi + cpu: 250m + memory: 128Mi limits: - cpu: 700m + cpu: 1000m memory: 1024Mi --- apiVersion: v1 diff --git a/manifests/pathcompservice.yaml b/manifests/pathcompservice.yaml index c85922d96..54ca91902 100644 --- a/manifests/pathcompservice.yaml +++ b/manifests/pathcompservice.yaml @@ -36,7 +36,7 @@ spec: - containerPort: 9192 env: - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10020"] diff --git a/manifests/serviceservice.yaml b/manifests/serviceservice.yaml index 7d7bdaa4e..3865fd6c0 100644 --- a/manifests/serviceservice.yaml +++ b/manifests/serviceservice.yaml @@ -36,7 +36,7 @@ spec: - containerPort: 9192 env: - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:3030"] diff --git a/manifests/sliceservice.yaml b/manifests/sliceservice.yaml index e7e5c1604..61f5b1d21 100644 --- a/manifests/sliceservice.yaml +++ b/manifests/sliceservice.yaml @@ -36,7 +36,7 @@ spec: - containerPort: 9192 env: - name: LOG_LEVEL - value: "INFO" + value: "DEBUG" - name: SLICE_GROUPING value: "DISABLE" envFrom: diff --git a/manifests/webuiservice.yaml b/manifests/webuiservice.yaml index 43caa9f04..61bb93312 100644 --- a/manifests/webuiservice.yaml +++ b/manifests/webuiservice.yaml @@ -56,7 +56,7 @@ spec: timeoutSeconds: 1 resources: requests: - cpu: 50m + cpu: 250m memory: 128Mi limits: cpu: 1000m @@ -97,7 +97,7 @@ spec: cpu: 250m memory: 512Mi limits: - cpu: 500m + cpu: 1000m memory: 1024Mi --- apiVersion: v1 -- GitLab