This commit is contained in:
2024-05-15 10:16:29 +02:00
parent 61a06511a6
commit 39e32d3418
24 changed files with 70 additions and 702 deletions

View File

@@ -12,6 +12,7 @@ locals {
}:{})
}
resource "kubectl_manifest" "pvc" {
ignore_fields = ["spec.resources.requests.storage"]
yaml_body = <<-EOF
apiVersion: v1
kind: PersistentVolumeClaim
@@ -20,6 +21,7 @@ resource "kubectl_manifest" "pvc" {
namespace: "${var.namespace}"
annotations:
k8up.io/backup: "true"
resize.kubesphere.io/storage_limit: "${var.storage.volume.maxSize}"
labels: ${jsonencode(local.common_labels)}
spec: ${jsonencode(local.pvc_spec)}
EOF