kubernetes_persistent_volume

    0

    0

    lucycodes42

    Terraform snippets

    This code specifies a resource named “kubernetes_persistent_volume_id” with the following properties:

    Name: my-metadata-name

    Spec:

    Capacity: 2Gi

    Access modes: ReadWriteMany

    Persistent Volume Source: vSphere Volume

    Shortcut: tf_kubernetes_persistent_volume

    resource "kubernetes_persistent_volume" "kubernetes_persistent_volume_id" {
       metadata {
           name = "my-metadata-name"
       }
       spec {
           capacity {
               storage = "2Gi"
           }
    
           access_modes = ["ReadWriteMany"]
           persistent_volume_source {
               vsphere_volume {
                   volume_path = "/absolute/path"
               }
           }
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.