grpc config changes for 5gc

Change-Id: I3de636bfb134fd301a5f568149318ba1278c8429
diff --git a/omec/5g-control-plane/Chart.yaml b/omec/5g-control-plane/Chart.yaml
index 3d1d7c8..e3431a0 100644
--- a/omec/5g-control-plane/Chart.yaml
+++ b/omec/5g-control-plane/Chart.yaml
@@ -8,7 +8,7 @@
 name: 5g-control-plane
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 0.2.13
+version: 0.2.14
 
 dependencies:
   - name: mongodb
diff --git a/omec/5g-control-plane/templates/deployment-nssf.yaml b/omec/5g-control-plane/templates/deployment-nssf.yaml
index 5ec2509..b75cf8e 100644
--- a/omec/5g-control-plane/templates/deployment-nssf.yaml
+++ b/omec/5g-control-plane/templates/deployment-nssf.yaml
@@ -53,6 +53,14 @@
         tty: true
         command: ["/free5gc/script/nssf-run.sh"]
         env:
+        - name: GRPC_GO_LOG_VERBOSITY_LEVEL
+          value: {{ .Values.config.grpc.golog_verbosity | quote }}
+        - name: GRPC_GO_LOG_SEVERITY_LEVEL
+          value: {{ .Values.config.grpc.severity | quote }}
+        - name: GRPC_TRACE
+          value: {{ .Values.config.grpc.trace | quote }}
+        - name: GRPC_VERBOSITY
+          value: {{ .Values.config.grpc.verbosity | quote }}
         - name: POD_IP
           valueFrom:
             fieldRef:
diff --git a/omec/5g-control-plane/templates/deployment-webui.yaml b/omec/5g-control-plane/templates/deployment-webui.yaml
index 78713a8..12d9de8 100644
--- a/omec/5g-control-plane/templates/deployment-webui.yaml
+++ b/omec/5g-control-plane/templates/deployment-webui.yaml
@@ -43,6 +43,15 @@
       containers:
       - name: webui
         image: {{ .Values.images.tags.webui }}
+        env:
+        - name: GRPC_GO_LOG_VERBOSITY_LEVEL
+          value: {{ .Values.config.grpc.golog_verbosity | quote }}
+        - name: GRPC_GO_LOG_SEVERITY_LEVEL
+          value: {{ .Values.config.grpc.severity | quote }}
+        - name: GRPC_TRACE
+          value: {{ .Values.config.grpc.trace | quote }}
+        - name: GRPC_VERBOSITY
+          value: {{ .Values.config.grpc.verbosity | quote }}
         imagePullPolicy: {{ .Values.images.pullPolicy }}
       {{- if .Values.config.coreDump.enabled }}
         securityContext:
diff --git a/omec/5g-control-plane/templates/service-webui.yaml b/omec/5g-control-plane/templates/service-webui.yaml
index 76a3273..0afc3dc 100644
--- a/omec/5g-control-plane/templates/service-webui.yaml
+++ b/omec/5g-control-plane/templates/service-webui.yaml
@@ -23,6 +23,9 @@
   - name: urlport-http
     port: {{ .Values.config.webui.urlport.port }}
     protocol: TCP
+  - name: grpc
+    port: {{ .Values.config.webui.grpc.port }}
+    protocol: TCP
 {{- if or .Values.config.webui.urlport.nodePort.enabled .Values.config.webui.prometheus.nodePort.enabled }}
 ---
 apiVersion: v1
diff --git a/omec/5g-control-plane/values.yaml b/omec/5g-control-plane/values.yaml
index 4b9beef..9a2ebd8 100644
--- a/omec/5g-control-plane/values.yaml
+++ b/omec/5g-control-plane/values.yaml
@@ -107,6 +107,11 @@
   mongodb:
     name: free5gc
     url: mongodb://mongodb
+  grpc:
+    golog_verbosity: "99"
+    severity: "info"
+    trace: "all"
+    verbosity: "debug"
   logger:
     # network function
     AMF:
@@ -191,6 +196,8 @@
       nodePort:
         enabled: false
         port: 35000
+    grpc:
+      port: 9876
     ingress:
       enabled: false
       hostname: free5gc.local
@@ -541,7 +548,7 @@
                 dns: # the IP address of DNS
                    ipv4: 8.8.8.8
                    ipv6: 2001:4860:4860::8888
-                ueSubnet: 10.250.0.0/16 # should be CIDR type
+                ueSubnet: 172.250.0.0/16 # should be CIDR type
               sNssai:
                 sd: "010203"
                 sst: 1