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)
-
pf (0.0.3)
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"
]
extra_labels
Description: Extra labels to apply to the namespace resource
Type: map(string)
Default: {}
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