deployment-api

graphnode-technologies/deployment-api/kubernetes

Terraform Module HCL KUBERNETES

Create a deployment in Kubernetes with autoscaling, service and nginx ingress ready for production.

Install
module "deployment-api" {
source = "graphnode-technologies/deployment-api/kubernetes"
version = "1.4.1"
}
plain text: /constructs/tfmod-graphnode-technologies-deployment-api-kubernetes/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-kubernetes-deployment-api This Terraform module creates a Deployment for Kubernetes along with a Horizontal Pod Autoscaler and a Service. The deployment includes a container with various configurations such as environment variables, volumes, resources, liveness and startup probes, etc. How to use ``hcl module "deployment" { source = "graphnode-technologies/deployment-api/kubernetes" version = "1.4.0" name = "example" namespace = "default" replicas = 1 image = "nginx:latest" args = ["nginx", "-g", "daemon off;"] service_account_name = "example-service-account" environment_vars = { EXAMPLE_VAR = "example_value" } } ` Resources created - Kubernetes Deployment - Kubernetes Horizontal Pod Autoscaler (optional) - Kubernetes Service (optional) - Kubernetes Ingress (optional) Inputs | Na

Inputs (24)
NameTypeDescriptionDefault
imagestring required
service_account_namestring""
replicasnumber1
requestsobject({ memory = string { "cpu": "10m", "memory": "50Mi" }
limitsobject({ memory = string { "cpu": "250m", "memory": "500Mi" }
argslist[]
extra_annotationsmap{}
extra_volume_secretsmap{}
health_checkobject({ path = string { "path": "/health", "port": 3000 }
namestring"main"
namespacestring"default"
extra_ingress_annotationsmap{}
extra_volume_mountsmap{}
environment_varsmap{}
secret_environment_varsmap{}
enable_livenessbooltrue
create_ingressbooltrue
max_replicasnumber1
domain_namestring""
create_servicebooltrue
startup_failure_thresholdnumber30
Outputs (1)
name
Resources (4)
kubernetes_deploymentkubernetes_horizontal_pod_autoscalerkubernetes_ingresskubernetes_service
Details
FrameworkTerraform Module
LanguageHCL
Version1.4.1
Cloud KUBERNETES
★ Stars1
Forks4
Total downloads5.0k
Inputs24
Outputs1
Resources4
Namespacegraphnode-technologies
Updated