[COMAC-223,COMAC-174] Add resource limits in CDN-Local

To show computing resources on Grafana dashboard

Change-Id: I8bcbf0c88f857d215dc4bf2f8849b66004eeec71
diff --git a/cdn-services/cdn-local/Chart.yaml b/cdn-services/cdn-local/Chart.yaml
index 1ec0fb4..aebb1b4 100644
--- a/cdn-services/cdn-local/Chart.yaml
+++ b/cdn-services/cdn-local/Chart.yaml
@@ -17,4 +17,4 @@
 appVersion: "1.0"
 description: A Helm chart for M-CORD CDN Services in Local Edge
 name: cdn-local
-version: 0.1.0
+version: 0.1.1
diff --git a/cdn-services/cdn-local/templates/nginx.yaml b/cdn-services/cdn-local/templates/nginx.yaml
index 05cc691..5d81825 100644
--- a/cdn-services/cdn-local/templates/nginx.yaml
+++ b/cdn-services/cdn-local/templates/nginx.yaml
@@ -87,6 +87,8 @@
           mountPath: /conf
         resources:
           limits:
+            cpu: {{ .Values.nginx.resources.cpu }}
+            memory: {{ .Values.nginx.resources.mem }}
             intel.com/sriov_netdevice: '2'
       volumes:
       - name: nginx-rtmp-config
diff --git a/cdn-services/cdn-local/values.yaml b/cdn-services/cdn-local/values.yaml
index 807c7bb..f1c15b0 100644
--- a/cdn-services/cdn-local/values.yaml
+++ b/cdn-services/cdn-local/values.yaml
@@ -30,6 +30,9 @@
     rtmp_orig: 1935
     rtmp_np: 31935
   replicas: 1
+  resources:
+    cpu: 3
+    mem: "1Gi"
 
 networks:
   sriov: