aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-11-27 13:21:36 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2024-11-27 13:21:36 +0100
commita00b9036625fb914bc4164aac0017f645442919f (patch)
tree5493fa96b81822d1ccb2ce6ed940aa64b99c792e /kubernetes
parent64e996851eb741093e18b8c9948f23dd91b26d96 (diff)
[MULTICLOUD] Add /tmp volumes in K8S
Add temporary volumes to overcome read-only filesystem restrictions Issue-ID: OOM-3318 Change-Id: Ie09c952d8d0a850bfbc6c1e6f17341face9d946a Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/multicloud/Chart.yaml2
-rw-r--r--kubernetes/multicloud/components/multicloud-k8s/Chart.yaml2
-rw-r--r--kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml16
-rw-r--r--kubernetes/multicloud/components/multicloud-k8s/values.yaml2
4 files changed, 17 insertions, 5 deletions
diff --git a/kubernetes/multicloud/Chart.yaml b/kubernetes/multicloud/Chart.yaml
index 01d4514c9e..fd028a718f 100644
--- a/kubernetes/multicloud/Chart.yaml
+++ b/kubernetes/multicloud/Chart.yaml
@@ -19,7 +19,7 @@
apiVersion: v2
description: ONAP multicloud broker
name: multicloud
-version: 15.0.1
+version: 15.0.2
dependencies:
- name: common
diff --git a/kubernetes/multicloud/components/multicloud-k8s/Chart.yaml b/kubernetes/multicloud/components/multicloud-k8s/Chart.yaml
index 588fa906c3..046f940d40 100644
--- a/kubernetes/multicloud/components/multicloud-k8s/Chart.yaml
+++ b/kubernetes/multicloud/components/multicloud-k8s/Chart.yaml
@@ -18,7 +18,7 @@
apiVersion: v2
description: ONAP Multicloud Kubernetes Plugin
name: multicloud-k8s
-version: 13.1.1
+version: 13.1.2
dependencies:
- name: common
diff --git a/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml b/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml
index f2ed9daa81..6ed5dee8ee 100644
--- a/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml
+++ b/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml
@@ -46,9 +46,11 @@ spec:
initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
volumeMounts:
- - mountPath: /opt/multicloud/k8splugin/k8sconfig.json
- name: {{ include "common.name" .}}
- subPath: k8sconfig.json
+ - mountPath: /tmp
+ name: tmp-dir-k8s
+ - mountPath: /opt/multicloud/k8splugin/k8sconfig.json
+ name: {{ include "common.name" .}}
+ subPath: k8sconfig.json
resources: {{ include "common.resources" . | nindent 10 }}
{{- if .Values.nodeSelector }}
nodeSelector:
@@ -81,6 +83,8 @@ spec:
initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
volumeMounts:
+ - mountPath: /tmp
+ name: tmp-dir-broker
- mountPath: "{{ .Values.log.path }}"
name: framework-log
- mountPath: /opt/app/distribution/etc/mounted/config.json
@@ -96,6 +100,12 @@ spec:
key: sasl.jaas.config
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
+ - name: tmp-dir-k8s
+ emptyDir:
+ sizeLimit: {{ .Values.volumes.tmpK8SSizeLimit }}
+ - name: tmp-dir-broker
+ emptyDir:
+ sizeLimit: {{ .Values.volumes.tmpBrokerSizeLimit }}
- name: framework-log
emptyDir:
sizeLimit: {{ .Values.volumes.logSizeLimit }}
diff --git a/kubernetes/multicloud/components/multicloud-k8s/values.yaml b/kubernetes/multicloud/components/multicloud-k8s/values.yaml
index 57becb2077..f22dfa7644 100644
--- a/kubernetes/multicloud/components/multicloud-k8s/values.yaml
+++ b/kubernetes/multicloud/components/multicloud-k8s/values.yaml
@@ -65,6 +65,8 @@ securityContext:
group_id: 999
volumes:
+ tmpK8SSizeLimit: 100Mi
+ tmpBrokerSizeLimit: 100Mi
artifactDataSizeLimit: 100Mi
logSizeLimit: 100Mi