terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

pvc in stateful set pends at waiting for consumer

Open lhanbingl opened this issue 1 year ago • 2 comments

Hello there, I observe similar behavior described in issue 1986 but in a stateful_set, where the pvc will wait for consumer while the pod depends on the pvc.

In the stateful set config, volume_claim_template is as follows

Terraform configuration

    volume_claim_template {
      metadata {
        name = "local-disk-pvc"
        namespace = "app"

      }
      spec {
          access_modes = ["ReadWriteOnce"]
          resources {
              requests = {
                  storage = "10Gi"
              }
          }
          storage_class_name = "local-disk"
      }
      # wait_until_bound = false    <<< wait_until_bound isn't expected here
    }

I've looked up the documentation of stateful set. There isn't wait_until_bound config available for volume_claim_template within a stateful set like a proper pvc resource.

Question

How can I let a pvc defined in a volume_claim_template within a stateful set not wait_until_bound? In other words, where is the wait_until_bound option for volume_claim_template in a stateful set? Thanks.

lhanbingl avatar Nov 21 '24 01:11 lhanbingl

Hello @arybolovlev , since you commented on Issue 1986, do you have any insight on this issue? Thank you so much.

lhanbingl avatar Nov 25 '24 18:11 lhanbingl

Any updates?

lhanbingl avatar Jan 17 '25 16:01 lhanbingl