Skip to content

blackbird-cloud/terraform-google-gke-namespace

Repository files navigation

A Google Kubernetes Engine Namespace Terraform module

A Terraform module which configures your Google Kubernetes Engine namespace.

blackbird-logo

Example

module "namespace" {
  source  = "blackbird-cloud/gke-namespace/google"
  version = "~> 1"

  cluster_name = "my-cluster"
  location     = "europe-west4"

  name = "mynamespace"

  labels = {
    my = "label"
  }
  annotations = {
    my = "annotation"
  }
}

provider "google" {
  project = "my-project"
}

Requirements

Name Version
terraform >= 1
google ~> 4
kubernetes ~> 2

Providers

Name Version
google 4.79.0

Resources

Name Type
google_client_config.provider data source
google_container_cluster.my_cluster data source

Inputs

Name Description Type Default Required
annotations (Optional) An unstructured key value map stored with the namespace that may be used to store arbitrary metadata. map(string) {} no
cluster_name (Required) - The name of the cluster. string n/a yes
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
location (Required) - The location (zone or region) this cluster has been created in. string n/a yes
name Name of the namespace, must be unique. Cannot be updated. string n/a yes

Outputs

Name Description
namespace The created Namespace on Kubernetes.

About

We are 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 👉 terraform modules

Copyright

Copyright © 2017-2023 Blackbird Cloud