Difference between revisions of "Terraform resource: kubernetes namespace"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace
 
https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace
  
 +
* name - (Optional) Name of the namespace, must be unique. Cannot be updated
  
* 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 ==
 +
* <code>[[Error: namespaces "amazon-cloudwatch" already exists]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{kubernetes_namespace}}
 
* {{tf K8s}}
 
* {{tf K8s}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 17:17, 1 February 2024

Advertising: