Terraform resource: kubernetes namespace

From wikieduonline
Jump to navigation Jump to search

https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace

  • name - (Optional) Name of the namespace, must be unique. Cannot be updated

Official examples

resource "kubernetes_namespace" "example" {
 metadata {
   annotations = {
     name = "example-annotation"
   }

   labels = {
     mylabel = "label-value"
   }

   name = "terraform-example-namespace"
 }
}

Errors

  • Error: namespaces "amazon-cloudwatch" already exists

See also

Advertising: