diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-11-18 08:29:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-18 08:29:30 +0000 |
commit | 83778d2dac0c7bd83ed6cb658bc66c6326ef3ddd (patch) | |
tree | ffcf69116d7a5f01bc5445ab5c752cd5127d38da | |
parent | 7b10a7c8da9c28b3b01a32f603d2231afb2622a2 (diff) | |
parent | 153927354cc586a99beb8180bb2eb4e10e8a3355 (diff) |
Merge "[CONTRIB] Add requests/limits to EJBCA"
-rw-r--r-- | kubernetes/contrib/components/ejbca/templates/deployment.yaml | 1 | ||||
-rw-r--r-- | kubernetes/contrib/components/ejbca/values.yaml | 22 |
2 files changed, 22 insertions, 1 deletions
diff --git a/kubernetes/contrib/components/ejbca/templates/deployment.yaml b/kubernetes/contrib/components/ejbca/templates/deployment.yaml index 3034366b1a..55de54febf 100644 --- a/kubernetes/contrib/components/ejbca/templates/deployment.yaml +++ b/kubernetes/contrib/components/ejbca/templates/deployment.yaml @@ -89,6 +89,7 @@ spec: {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | nindent 10 }} {{- end }} + resources: {{ include "common.resources" . | nindent 10 }} volumes: - configMap: name: "{{ include "common.fullname" . }}-config-script" diff --git a/kubernetes/contrib/components/ejbca/values.yaml b/kubernetes/contrib/components/ejbca/values.yaml index 1a9a34bcd1..35160e4b13 100644 --- a/kubernetes/contrib/components/ejbca/values.yaml +++ b/kubernetes/contrib/components/ejbca/values.yaml @@ -13,7 +13,7 @@ # limitations under the License. global: readinessImage: onap/oom/readiness:3.0.1 - mariadbGalera: &mariadbGalera + mariadbGalera: &mariadbGalera #This flag allows EJBCA to instantiate its own mariadb-galera cluster localCluster: false service: mariadb-galera @@ -104,3 +104,23 @@ service: port: 8443 plain_port: 8080 port_protocol: http + +# Resource Limit flavor -By Default using small +flavor: small +# Segregation for Different environment (Small and Large) +resources: + small: + limits: + cpu: 1500m + memory: 1536Mi + requests: + cpu: 10m + memory: 750Mi + large: + limits: + cpu: 2 + memory: 2Gi + requests: + cpu: 20m + memory: 1Gi + unlimited: {} |