From 41fd649c3c50efbfb68a6ff4296fe6933e9f857a Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 22 Jul 2021 23:20:33 +0200 Subject: [PATCH] fix onehem.pid + emptydirs --- helm/opennebula/templates/hem-deployment.yaml | 4 ++++ helm/opennebula/templates/novnc-deployment.yaml | 2 +- helm/opennebula/templates/oned-statefulset.yaml | 8 ++++++-- helm/opennebula/templates/sunstone-deployment.yaml | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/helm/opennebula/templates/hem-deployment.yaml b/helm/opennebula/templates/hem-deployment.yaml index 35cb196..a1c342b 100644 --- a/helm/opennebula/templates/hem-deployment.yaml +++ b/helm/opennebula/templates/hem-deployment.yaml @@ -54,6 +54,8 @@ spec: - mountPath: /etc/one/onehem-server.conf name: config subPath: onehem-server.conf + - name: one-run + mountPath: /run/one - name: one-keys mountPath: /var/lib/one/.one/one_auth subPath: one_auth @@ -113,6 +115,8 @@ spec: - name: config configMap: name: {{ $fullName }}-hem + - name: one-run + emptyDir: {} - name: ssh-keys secret: secretName: {{ $fullName }}-ssh-keys diff --git a/helm/opennebula/templates/novnc-deployment.yaml b/helm/opennebula/templates/novnc-deployment.yaml index c5da006..8c16153 100644 --- a/helm/opennebula/templates/novnc-deployment.yaml +++ b/helm/opennebula/templates/novnc-deployment.yaml @@ -120,7 +120,7 @@ spec: claimName: {{ $fullName }}-shared {{- end }} {{- else }} - emptyDir: + emptyDir: {} {{- end }} {{- with .Values.novnc.extraVolumes }} {{- toYaml . | nindent 6 }} diff --git a/helm/opennebula/templates/oned-statefulset.yaml b/helm/opennebula/templates/oned-statefulset.yaml index d269f58..5e3dbeb 100644 --- a/helm/opennebula/templates/oned-statefulset.yaml +++ b/helm/opennebula/templates/oned-statefulset.yaml @@ -152,6 +152,8 @@ spec: {{- end }}{{- end }} - name: scripts mountPath: /scripts + - name: one-run + mountPath: /run/one - name: one-keys mountPath: /secrets - name: ssh-keys @@ -255,6 +257,8 @@ spec: - name: one-keys secret: secretName: {{ $fullName }}-one-keys + - name: one-run + emptyDir: {} - name: data {{- if .Values.persistence.data.enabled }} persistentVolumeClaim: @@ -264,7 +268,7 @@ spec: claimName: {{ $fullName }}-data {{- end }} {{- else }} - emptyDir: + emptyDir: {} {{- end }} - name: shared {{- if .Values.persistence.shared.enabled }} @@ -275,7 +279,7 @@ spec: claimName: {{ $fullName }}-shared {{- end }} {{- else }} - emptyDir: + emptyDir: {} {{- end }} {{- with .Values.oned.extraVolumes }} {{- toYaml . | nindent 6 }} diff --git a/helm/opennebula/templates/sunstone-deployment.yaml b/helm/opennebula/templates/sunstone-deployment.yaml index 04b1e5a..b0126f0 100644 --- a/helm/opennebula/templates/sunstone-deployment.yaml +++ b/helm/opennebula/templates/sunstone-deployment.yaml @@ -145,7 +145,7 @@ spec: claimName: {{ $fullName }}-shared {{- end }} {{- else }} - emptyDir: + emptyDir: {} {{- end }} {{- with .Values.sunstone.extraVolumes }} {{- toYaml . | nindent 6 }}