From 1b5d9536e2db9ddf3c1d4a06b4517a8e3b3876b4 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Wed, 9 Oct 2024 16:09:55 +0000
Subject: [PATCH] Recover default settings and specs

---
 manifests/analyticsservice.yaml        |  8 ++++----
 manifests/automationservice.yaml       |  4 ++--
 manifests/contextservice.yaml          |  4 ++--
 manifests/deviceservice.yaml           |  4 ++--
 manifests/kpi_managerservice.yaml      |  4 ++--
 manifests/kpi_value_apiservice.yaml    |  2 +-
 manifests/kpi_value_writerservice.yaml |  2 +-
 manifests/pathcompservice.yaml         |  2 +-
 manifests/serviceservice.yaml          |  2 +-
 manifests/telemetryservice.yaml        |  8 ++++----
 my_deploy.sh                           | 15 +++++++++------
 11 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/manifests/analyticsservice.yaml b/manifests/analyticsservice.yaml
index 1c1b9f034..536bb1852 100644
--- a/manifests/analyticsservice.yaml
+++ b/manifests/analyticsservice.yaml
@@ -36,7 +36,7 @@ spec:
             - containerPort: 9192
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
             - name: CRDB_DATABASE
               value: "tfs_analytics"
             - name: METRICS_PORT
@@ -54,7 +54,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30080"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
@@ -67,7 +67,7 @@ spec:
             - containerPort: 9193
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
             - name: METRICS_PORT
               value: "9193"
           envFrom:
@@ -81,7 +81,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30090"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/automationservice.yaml b/manifests/automationservice.yaml
index d2113cecf..f6c97f7fb 100644
--- a/manifests/automationservice.yaml
+++ b/manifests/automationservice.yaml
@@ -39,7 +39,7 @@ spec:
             - containerPort: 9192
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
           startupProbe:
             exec:
               command: ["/bin/grpc_health_probe", "-addr=:30200"]
@@ -53,7 +53,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30200"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/contextservice.yaml b/manifests/contextservice.yaml
index e687687c0..0fc8a1c44 100644
--- a/manifests/contextservice.yaml
+++ b/manifests/contextservice.yaml
@@ -40,7 +40,7 @@ spec:
             - name: MB_BACKEND
               value: "nats"
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
             - name: ALLOW_EXPLICIT_ADD_DEVICE_TO_TOPOLOGY
               value: "FALSE"
             - name: ALLOW_EXPLICIT_ADD_LINK_TO_TOPOLOGY
@@ -60,7 +60,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:1010"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/deviceservice.yaml b/manifests/deviceservice.yaml
index f12faed11..e49ba2399 100644
--- a/manifests/deviceservice.yaml
+++ b/manifests/deviceservice.yaml
@@ -39,7 +39,7 @@ spec:
             - containerPort: 9192
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
           startupProbe:
             exec:
               command: ["/bin/grpc_health_probe", "-addr=:2020"]
@@ -53,7 +53,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:2020"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/kpi_managerservice.yaml b/manifests/kpi_managerservice.yaml
index 69046af89..f8ee8ff82 100644
--- a/manifests/kpi_managerservice.yaml
+++ b/manifests/kpi_managerservice.yaml
@@ -38,7 +38,7 @@ spec:
             - containerPort: 9192
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
             - name: CRDB_DATABASE
               value: "tfs_kpi_mgmt"
           envFrom:
@@ -52,7 +52,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30010"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/kpi_value_apiservice.yaml b/manifests/kpi_value_apiservice.yaml
index def3879b6..e4dcb0054 100644
--- a/manifests/kpi_value_apiservice.yaml
+++ b/manifests/kpi_value_apiservice.yaml
@@ -50,7 +50,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30020"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/kpi_value_writerservice.yaml b/manifests/kpi_value_writerservice.yaml
index c2b3d9507..e21e36f48 100644
--- a/manifests/kpi_value_writerservice.yaml
+++ b/manifests/kpi_value_writerservice.yaml
@@ -50,7 +50,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30030"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/pathcompservice.yaml b/manifests/pathcompservice.yaml
index 690c8232c..1f54c569c 100644
--- a/manifests/pathcompservice.yaml
+++ b/manifests/pathcompservice.yaml
@@ -47,7 +47,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:10020"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/serviceservice.yaml b/manifests/serviceservice.yaml
index bcd69f140..1dd383d61 100644
--- a/manifests/serviceservice.yaml
+++ b/manifests/serviceservice.yaml
@@ -45,7 +45,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:3030"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/manifests/telemetryservice.yaml b/manifests/telemetryservice.yaml
index 44ee500c2..86d864157 100644
--- a/manifests/telemetryservice.yaml
+++ b/manifests/telemetryservice.yaml
@@ -36,7 +36,7 @@ spec:
             - containerPort: 9192
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
             - name: CRDB_DATABASE
               value: "tfs_telemetry"
             - name: METRICS_PORT
@@ -54,7 +54,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30050"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
@@ -67,7 +67,7 @@ spec:
             - containerPort: 9193
           env:
             - name: LOG_LEVEL
-              value: "DEBUG"
+              value: "INFO"
             - name: METRICS_PORT
               value: "9193"
           envFrom:
@@ -81,7 +81,7 @@ spec:
               command: ["/bin/grpc_health_probe", "-addr=:30060"]
           resources:
             requests:
-              cpu: 100m
+              cpu: 250m
               memory: 128Mi
             limits:
               cpu: 1000m
diff --git a/my_deploy.sh b/my_deploy.sh
index 6692803f5..555173cf5 100755
--- a/my_deploy.sh
+++ b/my_deploy.sh
@@ -20,13 +20,13 @@
 export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
 
 # Set the list of components, separated by spaces, you want to build images for, and deploy.
-export TFS_COMPONENTS="context device pathcomp service nbi webui"
+export TFS_COMPONENTS="context device pathcomp service slice nbi webui"
 
 # Uncomment to activate Monitoring (old)
 #export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
 
 # Uncomment to activate Monitoring Framework (new)
-export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics automation"
+#export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics automation"
 
 # Uncomment to activate QoS Profiles
 #export TFS_COMPONENTS="${TFS_COMPONENTS} qos_profile"
@@ -48,7 +48,7 @@ export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_
 #export TFS_COMPONENTS="${TFS_COMPONENTS} ztp"
 
 # Uncomment to activate Policy Manager
-export TFS_COMPONENTS="${TFS_COMPONENTS} policy"
+#export TFS_COMPONENTS="${TFS_COMPONENTS} policy"
 
 # Uncomment to activate Optical CyberSecurity
 #export TFS_COMPONENTS="${TFS_COMPONENTS} dbscanserving opticalattackmitigator opticalattackdetector opticalattackmanager"
@@ -83,6 +83,9 @@ export TFS_COMPONENTS="${TFS_COMPONENTS} policy"
 #    export TFS_COMPONENTS="${BEFORE} qkd_app service ${AFTER}"
 #fi
 
+# Uncomment to activate Load Generator
+#export TFS_COMPONENTS="${TFS_COMPONENTS} load_generator"
+
 
 # Set the tag you want to use for your images.
 export TFS_IMAGE_TAG="dev"
@@ -103,7 +106,7 @@ export TFS_EXTRA_MANIFESTS="manifests/nginx_ingress_http.yaml"
 export TFS_GRAFANA_PASSWORD="admin123+"
 
 # Disable skip-build flag to rebuild the Docker images.
-export TFS_SKIP_BUILD="YES"
+export TFS_SKIP_BUILD=""
 
 
 # ----- CockroachDB ------------------------------------------------------------
@@ -131,7 +134,7 @@ export CRDB_DATABASE="tfs"
 export CRDB_DEPLOY_MODE="single"
 
 # Disable flag for dropping database, if it exists.
-export CRDB_DROP_DATABASE_IF_EXISTS="YES"
+export CRDB_DROP_DATABASE_IF_EXISTS=""
 
 # Disable flag for re-deploying CockroachDB from scratch.
 export CRDB_REDEPLOY=""
@@ -183,7 +186,7 @@ export QDB_TABLE_MONITORING_KPIS="tfs_monitoring_kpis"
 export QDB_TABLE_SLICE_GROUPS="tfs_slice_groups"
 
 # Disable flag for dropping tables if they exist.
-export QDB_DROP_TABLES_IF_EXIST="YES"
+export QDB_DROP_TABLES_IF_EXIST=""
 
 # Disable flag for re-deploying QuestDB from scratch.
 export QDB_REDEPLOY=""
-- 
GitLab