django
djangoflow/django/kubernetes
Terraform Module
HCL
KUBERNETES
Deploy Django with Terraform to Kubernetes with optional support for AWS/EKS or GCP/GKE
Install
module "django" {
source = "djangoflow/django/kubernetes"
version = "1.2.10"
}
README
terraform-kubernetes-django Deploy Django with Terraform to Kubernetes with optional support for AWS/EKS or GCP/GKE
Inputs (46)
| Name | Type | Description | Default |
|---|---|---|---|
| secret_env | map(string) | A map of extra secret environment variables | required |
| gcp_bucket_location | string | The location of the bucket, e.g. EU or US | required |
| ingress | map(map(string)) | A map of hostnames with maps of path-names and services | required |
| image_tag | string | Docker image tag | required |
| image_name | string | Docker image repository and name | required |
| namespace | string | Kubernetes namespace to use with this installation | required |
| image_pull_secrets | list(string) | Image pull secrets | [] |
| image_pull_policy | string | Pull policy for the images | "IfNotPresent" |
| postgres_enabled | bool | Create a postgres database deployment | false |
| postgres_storage_size | string | "10Gi" | |
| volumes | any | Volume configuration | [] |
| security_context_fsgroup | string | null | |
| gcp_db_instance | string | Create a database and a user for this installation and use them instead of DATAB | null |
| redis_db_index | string | "1" | |
| celery_worker_defaults | map | {
"args": [
"/start-celeryworker"
| |
| liveness_probe | object({ http_get = object | Liveness probe for containers which have ports | {
"failure_threshold": 3,
"http_get" |
| ingress_annotations | map(string) | {} | |
| deployments | map(object({ name | {
"web": {
"name": "web",
"por | |
| readiness_probe | object({ http_get = object | Readiness probe for containers which have ports | {
"failure_threshold": 3,
"http_get" |
| postgres_resources_requests_cpu | string | "250m" | |
| redis_resources_limits_memory | string | null | |
| redis_resources_limits_cpu | string | null | |
| security_context_uid | number | 101 | |
| create_namespace | bool | Should we create the namespace or use existing provided? | true |
| extra_labels | map(string) | Extra labels to add to generated objects | {} |
| env | map(string) | A map of extra environment variables | {} |
| … and 6 more inputs | |||
Outputs (1)
database_urlResources (7)
kubernetes_horizontal_pod_autoscaler_v1kubernetes_ingress_v1kubernetes_namespace_v1kubernetes_persistent_volume_claim_v1kubernetes_pod_disruption_budget_v1kubernetes_secret_v1kubernetes_service_account_v1
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.10
Cloud KUBERNETES
★ Stars4
Forks6
Total downloads3.6k
Inputs46
Outputs1
Resources7
Submodules3
LicenseMIT
Namespacedjangoflow
Updated