{{- 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" .) -}}
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
- emptyDir:
medium: Memory
name: app-config
+ {{- if $tmpDir }}
- name: tmp
emptyDir:
sizeLimit: 128Mi
+ {{- end }}
{{- if $logDir }}
- name: logs
emptyDir:
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