Added local disk

This commit is contained in:
2023-06-29 22:04:37 +02:00
parent 09e21d9bf4
commit 87384c8b63
5 changed files with 54 additions and 8 deletions

View File

@@ -29,12 +29,28 @@ spec:
- name: cloud
persistentVolumeClaim:
claimName: pvc-{{ include "..fullname" . }}
- name: cloud-local
persistentVolumeClaim:
claimName: pvc-{{ include "..fullname" . }}-local
- name: serverconfig
configMap:
name: {{ include "..fullname" . }}-cfg
imagePullSecrets:
- name: pull-secret
initContainers:
- name: init-storage
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
image: cloudyne/ubuntu-ci:latest
command: ["storage-clone"]
args: ["/full-cloud", "/full-cloud-local"]
imagePullPolicy: Always
volumeMounts:
- name: cloud
mountPath: /full-cloud
- name: cloud-local
mountPath: /full-cloud-local
- name: deploy
securityContext:
allowPrivilegeEscalation: false
@@ -49,14 +65,14 @@ spec:
subPath: init.json
{{- if .Values.storage.wpContent }}
{{- range $v := .Values.storage.wpContent }}
- name: cloud
- name: cloud-local
mountPath: "/app/web/app/{{ $v }}"
subPath: "{{ $v }}"
{{- end }}
{{- end }}
{{- if .Values.storage.additionalMounts }}
{{- range $v := .Values.storage.additionalMounts }}
- name: cloud
- name: cloud-local
mountPath: {{ $v.localPath }}
subPath: {{ $v.cloudPath }}
{{- end }}
@@ -81,14 +97,14 @@ spec:
subPath: unit.json
{{- if .Values.storage.wpContent }}
{{- range $v := .Values.storage.wpContent }}
- name: cloud
- name: cloud-local
mountPath: "/app/web/app/{{ $v }}"
subPath: "{{ $v }}"
{{- end }}
{{- end }}
{{- if .Values.storage.additionalMounts }}
{{- range $v := .Values.storage.additionalMounts }}
- name: cloud
- name: cloud-local
mountPath: {{ $v.localPath }}
subPath: {{ $v.cloudPath }}
{{- end }}