https://github.com/blackbird-cloud/terraform-kubernetes-namespace
Terraform module to create a Kubernetes namespace
https://github.com/blackbird-cloud/terraform-kubernetes-namespace
kubernetes namespace terraform
Last synced: about 1 month ago
JSON representation
Terraform module to create a Kubernetes namespace
- Host: GitHub
- URL: https://github.com/blackbird-cloud/terraform-kubernetes-namespace
- Owner: blackbird-cloud
- License: apache-2.0
- Created: 2022-09-08T14:36:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T15:26:36.000Z (over 1 year ago)
- Last Synced: 2026-04-01T22:04:19.604Z (2 months ago)
- Topics: kubernetes, namespace, terraform
- Language: HCL
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Kubernetes Namespace Module
Terraform module to create a Kubernetes namespace
[](https://blackbird.cloud)
## Example
```hcl
module "namespace" {
source = "blackbird-cloud/namespace/kubernetes"
version = "~> 1"
name = "mynamespace"
labels = {
my = "label"
}
annotations = {
my = "annotation"
}
}
```
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1 |
| [kubernetes](#requirement\_kubernetes) | ~> 2 |
## Providers
| Name | Version |
|------|---------|
| [kubernetes](#provider\_kubernetes) | ~> 2 |
## Resources
| Name | Type |
|------|------|
| [kubernetes_namespace.default](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [annotations](#input\_annotations) | (Optional) An unstructured key value map stored with the namespace that may be used to store arbitrary metadata. | `map(string)` | `{}` | no |
| [labels](#input\_labels) | (Optional) Map of string keys and values that can be used to organize and categorize (scope and select) namespaces. May match selectors of replication controllers and services. | `map(string)` | `{}` | no |
| [name](#input\_name) | Name of the namespace, must be unique. Cannot be updated. | `string` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| [namespace](#output\_namespace) | The created Namespace on Kubernetes. |
## About
We are [Blackbird Cloud](https://blackbird.cloud), Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.
Checkout our other :point\_right: [terraform modules](https://registry.terraform.io/namespaces/blackbird-cloud)
## Copyright
Copyright © 2017-2024 [Blackbird Cloud](https://blackbird.cloud)