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
@@ -19,6 +20,8 @@ resource "kubectl_manifest" "pvc" {
name: "${var.component}-${var.instance}"
namespace: "${var.namespace}"
labels: ${jsonencode(local.common_labels)}
annotations:
resize.kubesphere.io/storage_limit: "${var.storage.volume.maxSize}"
spec: ${jsonencode(local.pvc_spec)}
EOF
}