Terraform: Error: context deadline exceeded

Issue

│ Error: context deadline exceeded
│
│ with module.mysql.kubernetes_persistent_volume_claim.mysql,
│ on modules/mysql/main.tf line 16, in resource | "kubernetes_persistent_volume_claim" "mysql":
│ 16: resource "kubernetes_persistent_volume_claim" "mysql" {

Solution

add wait_until_bound = false


resource "kubernetes_persistent_volume_claim" "database" {
  metadata {
    name = "database"
  }
  spec {
    access_modes = ["ReadWriteOnce"]
    resources {
      requests = {
        storage = "5Gi"
      }
    }
    storage_class_name = var.storage
  }

  wait_until_bound = false
}
Buy me a coffeeOut of coffee 😱, please help!