add pvc-autoresizer for automatic PVC expansion before volumes fill up [ci skip]
Deploy topolvm/pvc-autoresizer controller that monitors kubelet_volume_stats via Prometheus and auto-expands annotated PVCs. Annotated all 9 block-storage PVCs (proxmox-lvm) with per-PVC thresholds and max limits. Updated PVFillingUp alert to critical/10m (means auto-expansion failed) and added PVAutoExpanding info alert at 80%.
This commit is contained in:
parent
b2cac8cc97
commit
ce7b8c2b2e
12 changed files with 113 additions and 3 deletions
|
|
@ -157,6 +157,13 @@ resource "helm_release" "mysql_cluster" {
|
|||
|
||||
datadirVolumeClaimTemplate = {
|
||||
storageClassName = "proxmox-lvm"
|
||||
metadata = {
|
||||
annotations = {
|
||||
"resize.topolvm.io/threshold" = "80%"
|
||||
"resize.topolvm.io/increase" = "20%"
|
||||
"resize.topolvm.io/storage_limit" = "100Gi"
|
||||
}
|
||||
}
|
||||
resources = {
|
||||
requests = {
|
||||
storage = "30Gi"
|
||||
|
|
@ -897,6 +904,11 @@ resource "null_resource" "pg_cluster" {
|
|||
search_path: '"$user", public'
|
||||
enableAlterSystem: true
|
||||
enableSuperuserAccess: true
|
||||
inheritedMetadata:
|
||||
annotations:
|
||||
resize.topolvm.io/threshold: "80%"
|
||||
resize.topolvm.io/increase: "20%"
|
||||
resize.topolvm.io/storage_limit: "100Gi"
|
||||
storage:
|
||||
size: 20Gi
|
||||
storageClass: proxmox-lvm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue