From ae916d200d4a41e0fbec72a36e78402a52b6d5ed Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Fri, 28 Oct 2022 19:25:39 +0000
Subject: [PATCH] Manifests:

- tweaked resources and containers to accelerate tests
---
 manifests/contextservice.yaml     |  4 +--
 manifests/deviceservice.yaml      |  2 +-
 manifests/dltservice.yaml         | 53 +++++++++++++++++--------------
 manifests/interdomainservice.yaml |  2 +-
 manifests/mock_blockchain.yaml    |  2 +-
 manifests/pathcompservice.yaml    |  4 +--
 manifests/serviceservice.yaml     |  2 +-
 manifests/sliceservice.yaml       |  2 +-
 manifests/webuiservice.yaml       |  2 +-
 9 files changed, 39 insertions(+), 34 deletions(-)

diff --git a/manifests/contextservice.yaml b/manifests/contextservice.yaml
index 04da586df..41a55e468 100644
--- a/manifests/contextservice.yaml
+++ b/manifests/contextservice.yaml
@@ -34,7 +34,7 @@ spec:
         - containerPort: 6379
         resources:
           requests:
-            cpu: 250m
+            cpu: 200m
             memory: 512Mi
           limits:
             cpu: 700m
@@ -64,7 +64,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:1010"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 200m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/deviceservice.yaml b/manifests/deviceservice.yaml
index 46c7557d9..2c450c619 100644
--- a/manifests/deviceservice.yaml
+++ b/manifests/deviceservice.yaml
@@ -43,7 +43,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:2020"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 200m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/dltservice.yaml b/manifests/dltservice.yaml
index 5ef6eae7d..7e00bd150 100644
--- a/manifests/dltservice.yaml
+++ b/manifests/dltservice.yaml
@@ -34,7 +34,12 @@ spec:
         - containerPort: 8080
         env:
         - name: LOG_LEVEL
-          value: "INFO"
+          value: "DEBUG"
+        # for debug purposes
+        - 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"]
@@ -43,33 +48,33 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:8080"]
         resources:
           requests:
-            cpu: 250m
-            memory: 512Mi
-          limits:
-            cpu: 700m
-            memory: 1024Mi
-      - name: gateway
-        image: registry.gitlab.com/teraflow-h2020/controller/dlt-gateway:latest
-        imagePullPolicy: Always
-        #readinessProbe:
-        #  httpGet:
-        #    path: /health
-        #    port: 8081
-        #  initialDelaySeconds: 5
-        #  timeoutSeconds: 5
-        #livenessProbe:
-        #  httpGet:
-        #    path: /health
-        #    port: 8081
-        #  initialDelaySeconds: 5
-        #  timeoutSeconds: 5
-        resources:
-          requests:
-            cpu: 250m
+            cpu: 200m
             memory: 512Mi
           limits:
             cpu: 700m
             memory: 1024Mi
+#      - name: gateway
+#        image: registry.gitlab.com/teraflow-h2020/controller/dlt-gateway:latest
+#        imagePullPolicy: Always
+#        #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
+#            memory: 1024Mi
 ---
 apiVersion: v1
 kind: Service
diff --git a/manifests/interdomainservice.yaml b/manifests/interdomainservice.yaml
index ca30da010..8073ff76f 100644
--- a/manifests/interdomainservice.yaml
+++ b/manifests/interdomainservice.yaml
@@ -43,7 +43,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:10010"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 100m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/mock_blockchain.yaml b/manifests/mock_blockchain.yaml
index b383d7db4..1e1a1a4c6 100644
--- a/manifests/mock_blockchain.yaml
+++ b/manifests/mock_blockchain.yaml
@@ -43,7 +43,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:50051"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 150m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/pathcompservice.yaml b/manifests/pathcompservice.yaml
index d5939cb15..c0f018beb 100644
--- a/manifests/pathcompservice.yaml
+++ b/manifests/pathcompservice.yaml
@@ -43,7 +43,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:10020"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 100m
             memory: 512Mi
           limits:
             cpu: 700m
@@ -65,7 +65,7 @@ spec:
         #  timeoutSeconds: 5
         resources:
           requests:
-            cpu: 250m
+            cpu: 200m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/serviceservice.yaml b/manifests/serviceservice.yaml
index efe43fe22..729aeb5c0 100644
--- a/manifests/serviceservice.yaml
+++ b/manifests/serviceservice.yaml
@@ -43,7 +43,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:3030"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 100m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/sliceservice.yaml b/manifests/sliceservice.yaml
index eeed3776c..67af029b6 100644
--- a/manifests/sliceservice.yaml
+++ b/manifests/sliceservice.yaml
@@ -43,7 +43,7 @@ spec:
             command: ["/bin/grpc_health_probe", "-addr=:4040"]
         resources:
           requests:
-            cpu: 250m
+            cpu: 100m
             memory: 512Mi
           limits:
             cpu: 700m
diff --git a/manifests/webuiservice.yaml b/manifests/webuiservice.yaml
index fe08d37ae..fd5d17822 100644
--- a/manifests/webuiservice.yaml
+++ b/manifests/webuiservice.yaml
@@ -55,7 +55,7 @@ spec:
           timeoutSeconds: 1
         resources:
           requests:
-            cpu: 250m
+            cpu: 100m
             memory: 512Mi
           limits:
             cpu: 700m
-- 
GitLab