mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Create pvs manually
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{{- range $index, $e := until .Values.prometheus.replicas }}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-prometheus-pv-{{ $index }}
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-10"
|
||||
spec:
|
||||
storageClassName: {{ .Values.storage.className }}
|
||||
capacity:
|
||||
storage: {{ .Values.storage.capacity }}
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
claimRef:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: {{ .Release.Name }}-prometheus-kube-prometheus-prometheus-db-prometheus-prometheus-kube-prometheus-prometheus-{{ $index }}
|
||||
csi:
|
||||
driver: csi.hetzner.cloud
|
||||
volumeHandle: {{ index .Values.storage.handles $index }}
|
||||
fsType: ext4
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user