namespace-setup
DeimosCloud/namespace-setup/kubernetes
Terraform Kubernetes Cert Manager Module A terraform module to setup a namespace. It creates a namespace and configures secrets, pull secrets and configs. Usage ``hcl module "apps_namespace_setup" { source = "." labels = local.common_labels namespace = local.apps_namespace namespace_labels = { "argocd.argoproj.io/instance" = "argocd-applications" # Allow Argocd admit it without destruction } namespace_annotations = { "linkerd.io/inject" = "enabled" "config.linkerd.io/skip-outbound-ports" = "4222,3306,6379" #nats, mysql and redis } secret_data = { "postgres-user" = local.db_user_name "postgres-password" = module.postgres.generated_user_password "postgres-host" = module.postgres.private_ip_address "postgres-database" = local.db_name "ratings-database" = local.ratings_db_name "redis-host" = m
| Name | Type | Description | Default |
|---|---|---|---|
| secret_generate_name | string | Prefix, used by the server, to generate a unique name.This value will also be co | required |
| pull_secret_name | string | The name of the pull secret | required |
| pull_secret_username | string | The username for the pull secret e.g _json_key for GCP SA | required |
| pull_secret_password | string | The base64 encoded password to be used as pull secret creds | required |
| pull_secret_registry | string | Registry server URL | required |
| namespace | string | the name of the namespace to be created | required |
| namespace_labels | map | Labels to be applied to the created namespace | {} |
| secret_data | map | data to be populated into config secret created in namespace | {} |
| create_namespace | bool | Whether to create namespace or not | true |
| namespace_annotations | map | Annotations to be applied to the created namespace | {} |
| labels | map | Extra labels to be added to all created resources | {} |
| secret_name | string | The name of the secret to create and store variables as | "config" |
| secret_type | string | The type of the secret to create. (default Opaque) | "Opaque" |