kubernetes_namespace

    0

    0

    lucycodes42

    Terraform snippets

    This code creates a resource named "kubernetes_namespace_id" that has a name attribute of "my-kubernetes-namespace". The metadata will have the annotation "name = "my-annotations-name"" and the label "mylabelValue".

    Shortcut: tf_kubernetes_namespace

    resource "kubernetes_namespace" "kubernetes_namespace_id" {
       name = "my-kubernetes-namespace"
    
       metadata {
           annotations {
               name = "my-annotations-name"
           }
    
           labels {
               mylabel = "mylabelValue"
           }
       }
    }
    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.