[VOL-4300]: Resource limits defined
Change-Id: Iad73584a4119dfb82d5059de1ef31283f5c85a9b
diff --git a/voltha-adapter-openolt/Chart.yaml b/voltha-adapter-openolt/Chart.yaml
index 8e6ad7b..ab05d1d 100644
--- a/voltha-adapter-openolt/Chart.yaml
+++ b/voltha-adapter-openolt/Chart.yaml
@@ -14,7 +14,7 @@
---
apiVersion: "v1"
name: "voltha-adapter-openolt"
-version: "2.10.0"
+version: "2.10.1"
description: "A Helm chart for Voltha OpenOLT Adapter"
keywords:
- "onf"
diff --git a/voltha-adapter-openolt/templates/openolt-deploy.yaml b/voltha-adapter-openolt/templates/openolt-deploy.yaml
index 4c9a34b..623c280 100644
--- a/voltha-adapter-openolt/templates/openolt-deploy.yaml
+++ b/voltha-adapter-openolt/templates/openolt-deploy.yaml
@@ -125,3 +125,18 @@
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
+ resources:
+ requests:
+ {{- if .Values.resources.requests.memory }}
+ memory: {{ .Values.resources.requests.memory }}
+ {{- end }}
+ {{- if .Values.resources.requests.cpu }}
+ cpu: {{ .Values.resources.requests.cpu }}
+ {{- end }}
+ limits:
+ {{- if .Values.resources.limits.memory }}
+ memory: {{ .Values.resources.limits.memory }}
+ {{- end }}
+ {{- if .Values.resources.limits.cpu }}
+ cpu: {{ .Values.resources.limits.cpu }}
+ {{- end }}
diff --git a/voltha-adapter-openolt/values.yaml b/voltha-adapter-openolt/values.yaml
index 8e9acc1..431bbfd 100644
--- a/voltha-adapter-openolt/values.yaml
+++ b/voltha-adapter-openolt/values.yaml
@@ -98,3 +98,11 @@
repository: '{{ .Values.global.image_org }}voltha-openolt-adapter'
tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.image_tag }}{{- else }}{{ .Chart.AppVersion }}{{- end }}{{- else }}{{ .Chart.AppVersion }}{{- end }}'
pullPolicy: '{{ .Values.global.image_pullPolicy | default "Always" }}'
+
+resources:
+ requests:
+ cpu: 0.5
+ memory: 256Mi
+ limits:
+ cpu: ~
+ memory: ~