Create pvs manually

This commit is contained in:
2023-11-08 19:36:20 +01:00
parent bba6e9d2f4
commit 3adedd8bfc
3 changed files with 35 additions and 1 deletions
+21
View File
@@ -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 }}
@@ -17,6 +17,7 @@ kube-prometheus-stack:
prometheus:
prometheusSpec:
replicas: &replicas 1
retention: 6h
disableCompaction: true
storageSpec:
@@ -63,3 +64,8 @@ kube-prometheus-stack:
kubeScheduler:
endpoints:
- 10.0.0.4
prometheus:
replicas: *replicas
storage:
handles:
- 100068485
+7
View File
@@ -2,3 +2,10 @@ vault:
enabled: false
applicationName: ""
operatorNamespace: ""
prometheus:
# must match the value provided to prometheusSpec of kube-prometheus-stack
replicas: 1
storage:
capacity: 10Gi
className: hcloud-volumes
handles: []