Difference between revisions of "Terraform kubernetes resource: kubernetes persistent volume v1"

From wikieduonline
Jump to navigation Jump to search
(Created page with " {{tf k8s}}")
Tags: Mobile web edit, Mobile edit
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/persistent_volume_v1
  
 +
<pre>
 +
resource "kubernetes_persistent_volume_v1" "example" {
 +
  metadata {
 +
    name = "terraform-example"
 +
  }
 +
  spec {
 +
    capacity = {
 +
      storage = "2Gi"
 +
    }
 +
    access_modes = ["ReadWriteMany"]
 +
    persistent_volume_source {
 +
      vsphere_volume {
 +
        volume_path = "/absolute/path"
 +
      }
 +
    }
 +
  }
 +
}
 +
</pre>
  
 +
== Related ==
 +
* [[Kubernetes Persistent Volumes (PV)]]
  
{{tf k8s}}
+
== See also ==
 +
* {{tf k8s}}
 +
 
 +
[[Category:Terraform]]

Latest revision as of 12:34, 12 January 2024

Advertising: