Added local disk
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user