From bf9aacf731b539c7b578755c77e19a1cafcd4eba Mon Sep 17 00:00:00 2001 From: Rub21 Date: Mon, 13 Nov 2023 15:13:21 +0700 Subject: [PATCH] Raising shared memory limit for web api --- osm-seed/templates/web/web-deployment.yaml | 8 ++++++++ osm-seed/values.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/osm-seed/templates/web/web-deployment.yaml b/osm-seed/templates/web/web-deployment.yaml index 7f07f511..91cf36a0 100644 --- a/osm-seed/templates/web/web-deployment.yaml +++ b/osm-seed/templates/web/web-deployment.yaml @@ -107,6 +107,14 @@ spec: value: {{ .Values.web.env.NEW_RELIC_LICENSE_KEY | default ""}} - name: NEW_RELIC_APP_NAME value: {{ .Values.web.env.NEW_RELIC_APP_NAME | default ""}} + volumeMounts: + - mountPath: /dev/shm + name: shared-memory + volumes: + - emptyDir: + medium: Memory + sizeLimit: {{ .Values.web.sharedMemorySize }} + name: shared-memory {{- if .Values.web.nodeSelector.enabled }} nodeSelector: {{ .Values.web.nodeSelector.label_key }} : {{ .Values.web.nodeSelector.label_value }} diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index e7679213..1ef60886 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -147,6 +147,7 @@ web: minReplicas: 1 maxReplicas: 3 cpuUtilization: 80 + sharedMemorySize: 256Mi # ==================================================================================================== # Variables for memcached. Memcached is used to store session cookies # ====================================================================================================