Difference between revisions of "Terraform resource: kubernetes namespace"
Jump to navigation
Jump to search
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" | |
+ | } | ||
+ | } | ||
== See also == | == See also == |
Revision as of 11:24, 26 January 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
resource "kubernetes_namespace" "example" { metadata { annotations = { name = "example-annotation" }
labels = { mylabel = "label-value" }
name = "terraform-example-namespace" } }
See also
- 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: