diff --git a/testing-framework/deployers/k8s/helm/nomos-runner/templates/pv.yaml b/testing-framework/deployers/k8s/helm/nomos-runner/templates/pv.yaml new file mode 100644 index 0000000..6372cde --- /dev/null +++ b/testing-framework/deployers/k8s/helm/nomos-runner/templates/pv.yaml @@ -0,0 +1,18 @@ +{{- if eq .Values.kzg.mode "hostPath" }} +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "nomos-runner.fullname" . }}-kzg + labels: + {{- include "nomos-runner.labels" . | nindent 4 }} +spec: + capacity: + storage: {{ .Values.kzg.storageSize }} + accessModes: + - ReadOnlyMany + persistentVolumeReclaimPolicy: Delete + storageClassName: manual + hostPath: + path: {{ .Values.kzg.hostPath }} + type: {{ .Values.kzg.hostPathType }} +{{- end }} diff --git a/testing-framework/deployers/k8s/helm/nomos-runner/templates/pvc.yaml b/testing-framework/deployers/k8s/helm/nomos-runner/templates/pvc.yaml new file mode 100644 index 0000000..93f4081 --- /dev/null +++ b/testing-framework/deployers/k8s/helm/nomos-runner/templates/pvc.yaml @@ -0,0 +1,16 @@ +{{- if eq .Values.kzg.mode "hostPath" }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "nomos-runner.fullname" . }}-kzg + labels: + {{- include "nomos-runner.labels" . | nindent 4 }} +spec: + accessModes: + - ReadOnlyMany + storageClassName: manual + volumeName: {{ include "nomos-runner.fullname" . }}-kzg + resources: + requests: + storage: {{ .Values.kzg.storageSize }} +{{- end }}