datalake ui is not coming up due to a tmp volume overwriting it's entrypoint 41/140241/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 18 Feb 2025 11:06:39 +0000 (12:06 +0100)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 18 Feb 2025 11:06:39 +0000 (12:06 +0100)
- make the definition of a tmp empty dir volume configurable
- only enable it for ves-collector (where it is increasing read-only
  filesystem support)

Issue-ID: DCAEGEN2-3419
Change-Id: I90a3f22f316957ad9f77e97f5175173a1748adac
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl
kubernetes/dcaegen2-services/components/dcae-hv-ves-collector/values.yaml

index 183cde0..101dc07 100644 (file)
@@ -244,6 +244,8 @@ post-processing.
 {{- define "dcaegen2-services-common.microserviceDeployment" -}}
 {{- $log := default dict .Values.log -}}
 {{- $logDir :=  default "" $log.path -}}
+{{- $tmp := default dict .Values.tmpDir -}}
+{{- $tmpDir :=  default false $tmp.enabled -}}
 {{- $ves := default false .Values.ves -}}
 {{- $certDir := (eq "true" (include "common.needTLS" .)) | ternary (default "" .Values.certDirectory . ) "" -}}
 {{- $commonRelease :=  print (include "common.release" .) -}}
@@ -350,8 +352,10 @@ spec:
           name: {{ ternary "app-config-input" "app-config" (not $drNeedProvisioning) }}
         - mountPath: /app-config-input
           name: app-config-input
+        {{- if $tmpDir }}
         - mountPath: /tmp
           name: tmp
+        {{- end }}
         {{- if $logDir }}
         - mountPath: {{ $logDir}}
           name: logs
@@ -424,9 +428,11 @@ spec:
       - emptyDir:
           medium: Memory
         name: app-config
+      {{- if $tmpDir }}
       - name: tmp
         emptyDir:
           sizeLimit: 128Mi
+      {{- end }}
       {{- if $logDir }}
       - name: logs
         emptyDir:
index 2365c17..a1a2467 100644 (file)
@@ -53,6 +53,10 @@ containerPort: &containerPort 6061
 log:
   path: /var/log/ONAP/dcae-hv-ves-collector
 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
+# a tmp volume is needed by the tomcat server of the app
+# when the filesystem is set to read-only
+tmpDir:
+  enabled: true
 
 # directory where TLS certs should be stored
 # if absent, no certs will be retrieved and stored