commit | c8e65f2b04474fcc5b3472d613b581ae39476664 | [log] [tgz] |
---|---|---|
author | Woojoong Kim <woojoong@opennetworking.org> | Thu Sep 05 14:10:50 2019 -0700 |
committer | Woojoong Kim <woojoong@opennetworking.org> | Thu Sep 05 14:10:50 2019 -0700 |
tree | 33deba289a949cfa0abc7d74dc6f2287ac8bce45 | |
parent | 1f1199eb87d2ed23aa3911d1a6971edb379bdf60 [diff] |
[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: