Skip to content

This repository contains the terraform code for an operations engineering namespace in the cloud platform • This repository is defined and managed in Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/operations-engineering-cloud-platform-namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Cloud Platform Namespace Module

This Terraform module provisions a Kubernetes namespace, along with RBAC role bindings, LimitRange, ResourceQuota, and NetworkPolicy. It provides a way to easily set up a Kubernetes namespace with configurable limits and policies, as well as RBAC settings for administrative access.

Features

  • Creates a Kubernetes namespace with annotations and labels.
  • Sets up RBAC role bindings for administrative access.
  • Configures resource limits for containers within the namespace.
  • Defines quotas for the maximum number of pods.
  • Applies a default network policy to control ingress traffic.

Usage

module "namespace" {
  source = "./terraform-module"

  namespace_name = "my-namespace"
  environment    = "development"
  is_production  = false
  application    = "Join a Ministry of Justice GitHub Org"
  source_code    = "https://github.com/ministryofjustice/operations-engineering-join-github"
}

Requirements

No requirements.

Providers

Name Version
kubernetes n/a

Modules

No modules.

Resources

Name Type
kubernetes_limit_range.example resource
kubernetes_namespace.example resource
kubernetes_network_policy.default resource
kubernetes_resource_quota.example resource
kubernetes_role_binding.example resource

Inputs

Name Description Type Default Required
application Application name string n/a yes
business_unit Business unit responsible for the service string "Platforms" no
environment Environment name (e.g., development, staging, production) string n/a yes
is_production Boolean flag to indicate if this is a production environment bool n/a yes
namespace_name Name of the Kubernetes namespace string n/a yes
owner Email or contact info of the application owner string "operations-engineering@digital.justice.gov.uk" no
rbac_group Group name for RBAC role bindings string "github:operations-engineering" no
slack_channel Slack channel for notifications string "#operations-engieering" no
source_code URL of the source code repository string n/a yes
team_name Development team responsible for the service string "Operations Engineering" no

Outputs

Name Description
ecr_repo_url n/a
namespace_name n/a

About

This repository contains the terraform code for an operations engineering namespace in the cloud platform • This repository is defined and managed in Terraform

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages