kubernetes_persistent_volume_claim

    0

    0

    lucycodes42

    Terraform snippets

    This code defines a resource named "kubernetes_persistent_volume_claim_id" that defines the ID of a Kubernetes persistent volume claim. The resource has the following properties:

    Name: my-metadata-name

    Access modes: ReadWriteMany

    Resources:

    requests: storage: 5Gi

    Volume name: ${kubernetes_persistent_volume.kubernetes_persistent_volume_id.metadata.0.

    Shortcut: tf_kubernetes_persistent_volume_claim

    resource "kubernetes_persistent_volume_claim" "kubernetes_persistent_volume_claim_id" {
       metadata {
           name = "my-metadata-name"
       }
       spec {
           access_modes = ["ReadWriteMany"]
           resources {
               requests {
                   storage = "5Gi"
               }
           }
           volume_name = "\${kubernetes_persistent_volume.kubernetes_persistent_volume_id.metadata.0.name\}"
       }
    }
    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.