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 }}
|
||||||
@@ -17,6 +17,7 @@ kube-prometheus-stack:
|
|||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
prometheusSpec:
|
prometheusSpec:
|
||||||
|
replicas: &replicas 1
|
||||||
retention: 6h
|
retention: 6h
|
||||||
disableCompaction: true
|
disableCompaction: true
|
||||||
storageSpec:
|
storageSpec:
|
||||||
@@ -63,3 +64,8 @@ kube-prometheus-stack:
|
|||||||
kubeScheduler:
|
kubeScheduler:
|
||||||
endpoints:
|
endpoints:
|
||||||
- 10.0.0.4
|
- 10.0.0.4
|
||||||
|
prometheus:
|
||||||
|
replicas: *replicas
|
||||||
|
storage:
|
||||||
|
handles:
|
||||||
|
- 100068485
|
||||||
@@ -2,3 +2,10 @@ vault:
|
|||||||
enabled: false
|
enabled: false
|
||||||
applicationName: ""
|
applicationName: ""
|
||||||
operatorNamespace: ""
|
operatorNamespace: ""
|
||||||
|
prometheus:
|
||||||
|
# must match the value provided to prometheusSpec of kube-prometheus-stack
|
||||||
|
replicas: 1
|
||||||
|
storage:
|
||||||
|
capacity: 10Gi
|
||||||
|
className: hcloud-volumes
|
||||||
|
handles: []
|
||||||
Reference in New Issue
Block a user