deployment

ballj/deployment/kubernetes

Terraform Module HCL KUBERNETES

Creates an kubernetes deployment resource.

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

Terraform Kubernetes Deployment This terraform module deploys a deployment on kubernetes and adds a service. Usage `` module "deployment" { source = "ballj/deployment/kubernetes" version = "~> 2.4" image_name = "nginx" image_tag = "latest" namespace = "production" object_prefix = "nginx" ports = [ { name = "http" protocol = "TCP" container_port = "8080" service_port = "80" }, { name = "https" protocol = "TCP" container_port = "8443" service_port = "443" } ] volumes = [{ name = "html" type = "persistent_volume_claim" object_name = "nginx" readonly = false mounts = [{ mount_path = "/usr/share/nginx/html" }] }] labels = { "app.kubernetes.io/part-of" = "nginx" } env = { NGINX_HOST = "example.com", NGINX_ENTRYPOINT_QUIET_LOGS = 1 } env_secret = [{ name = "USERNAME" secret = app-secret key = "us

Inputs (50)
NameTypeDescriptionDefault
image_namestringDocker image to use required
service_account_namestringService account name to add to the pod""
service_traffic_policystringService external traffic policy"Local"
init_user_image_namestringInit container image name""
labelsmap(string)Labels to add{}
portsanyPorts to expose from container[]
resources_limits_cpustringThe maximum amount of compute resources allowed""
startup_probe_timeoutnumberTimeout of the probe in seconds1
init_connectivity_image_namestringTag to use for the init container"bash"
network_policy_ingresslist(any)Ingress policy to apply to deployment[]
security_context_container_capabilities_addstringAdded capabilitiesnull
security_context_container_capabilities_dropstringRemoved capabilitiesnull
readiness_probe_enabledboolEnable the readyness probetrue
connectivity_checklist(object({ name = sEnv secrets to use for the init container[]
post_start_schemestringScheme of the http_get request"HTTP"
startup_probe_initial_delaynumberInitial delay of the probe in seconds10
startup_probe_periodnumberPeriod of the probe in seconds1
timeout_deletestringTimeout for creating the deployment"10m"
liveness_probe_periodnumberPeriod of the probe in seconds10
max_ready_secondsnumberThe maximum time in seconds for a deployment to make progress before it is consi600
custom_certificate_authoritylist(string)Certificate authorities to add to image[]
… and 10 more inputs
Outputs (4)
hostname
ports
ip
selector_labels
Resources (3)
kubernetes_deployment_v1kubernetes_network_policy_v1kubernetes_service_v1
Details
FrameworkTerraform Module
LanguageHCL
Version2.6.0
Cloud KUBERNETES
★ Stars7
Forks7
Total downloads9.9k
Inputs50
Outputs4
Resources3
Namespaceballj
Updated