Panfactum LogoPanfactum
Infrastructure ModulesSubmodulesKuberneteskube_namespace
kube_namespace
Stable
Submodule
Source Code Link

Kubernetes Namespace

Sets up a Kubernetes namespace and grants namespace-scoped permissions to specific Kubernetes user groups.

Providers

The following providers are needed by this module:

  • kubectl (2.0.4)

  • kubernetes (2.27.0)

Required Inputs

The following input variables are required:

namespace

Description: The name of the kubernetes namespace to instantiate.

Type: string

Optional Inputs

The following input variables are optional (have default values):

admin_groups

Description: The names of the kubernetes groups to give admin access to the namespace.

Type: list(string)

Default:

[
  "system:admins"
]

linkerd_inject

Description: Whether to inject linkerd sidecars into pods in this namespace.

Type: bool

Default: true

loadbalancer_enabled

Description: Whether the namespace is going to create LoadBalancer services

Type: bool

Default: false

monitoring_enabled

Description: Whether to allow monitoring CRs to be deployed in the namespace

Type: bool

Default: true

reader_groups

Description: The names of the kubernetes groups to give read access to the namespace.

Type: list(string)

Default:

[
  "system:readers"
]

Outputs

The following outputs are exported:

namespace

Description: n/a

Usage

No notes