Difference between revisions of "Terraform resource: kubernetes namespace"
Jump to navigation
Jump to search
(→Errors) |
|||
(4 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 | ||
+ | |||
+ | == 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
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: