Difference between revisions of "Terraform resource: kubernetes namespace"
Jump to navigation
Jump to search
(→Errors) |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
name = "example-annotation" | name = "example-annotation" | ||
} | } | ||
− | + | ||
labels = { | labels = { | ||
mylabel = "label-value" | mylabel = "label-value" | ||
} | } | ||
− | + | ||
name = "terraform-example-namespace" | name = "terraform-example-namespace" | ||
} | } | ||
} | } | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[Error: namespaces "amazon-cloudwatch" already exists]]</code> | ||
== See also == | == See also == |
Latest revision as of 17:17, 1 February 2024
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[edit]
resource "kubernetes_namespace" "example" { metadata { annotations = { name = "example-annotation" } labels = { mylabel = "label-value" } name = "terraform-example-namespace" } }
Errors[edit]
See also[edit]
- Terraform resource: kubernetes namespace
- Terraform provider: Kubernetes,
kubernetes_storage_class_v1, kubernetes_persistent_volume, kubernetes_manifest, kubernetes daemonset, kubernetes_service, kubernetes_namespace, kubernetes_service_account, kubernetes_secret, kubernetes_namespace, kubernetes_service_account_v1, kubernetes_secret_v1, kubernetes horizontal pod autoscaler v1, kubernetes_ingress_v1, kubernetes_persistent_volume_claim_v1
Advertising: